Otis wrote:
Could you give an example
Yep. I am making changes to the underlying data as I iterate over it which will exclude the edited records from subsequent retrieval using the same query filtering predicates (ignoring paging).
Here is an example (page size 5):
TABLE contents:
ID PROCESSED
1 false
2 false
3 false
4 false
5 false
6 false
7 false
8 false
9 false
10 false
query: "get records from TABLE where PROCESSED=false"
Get page 1:
result set {1,2,3,4,5}
edit 3 records - setting PROCESSED=true.
Get page 2:
result set {9, 10}
NB: not {6,7,8,9,10} due to editing of records in first page.
If I keep track of how many records I edit, I can ask for blocks of records by start and end row that avoids the skipping of records seen above.
**BTW, as an implementation of this idea, I'm currently trying to intercept the collection fetching query and modify the values of __rownumStart and __rowNumEnd parameters.**