Looking to find a good way to query across remote data and local cache simultaneously. I need to be able to query remote data but merge the results with the local changes.
So if I add an item "Bob" and I get the first 5 results alphabetically ordered ascending, Instead of receiving "Aaron, Adam, Alice, Ashley, Bud", I would instead receive "Aaron, Adam, Alice, Ashley, Bob" and if I queried for the second 5 results (skip 5, take 5) the list would start with "Bud". This also needs to handle deleting, so if I have locally deleted items 1 and 3 and I query for the first 50 items, I want to receive items 2 and 4 through 52. And lastly queries for filtering need to address both the server and the local cache changes: so if I change "Sam"'s name to "Bob" and query for all names beginning with B, I should get Sam's new Bob record with Bill and the guys.
Normally we would just download all the rows with the initial query and allow for queryLocally to handle the work, but there is an issue because we are working with 10,000 records or more.
Any help is appreciated!