Skip to content
Discussion options

You must be logged in to vote

Do you have details on how UNION ALL breaks the indexes? I'd expect that indexes should still work for filters, but may be less efficient with ORDER BY ... LIMIT.

It is technically possible to have local-only and synced rows in the same raw table, but it's your app's responsibility to manage it. The SDK only uses the "put" and "delete" queries you provide for raw tables (and support for providing a query to "clear" the table also being rolled out soon) - no other queries would be run against your table automatically. If you go this route, I'd recommend adding an additional column to indicate whether or not the row is being synced, which you can use both as a filter in the powersync_crud t…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@galacticgibbon
Comment options

Answer selected by simolus3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants