Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
@GeorgeEdison, no, I won't. Imagine that there are items 1 – 100 on the first page and I fetch that. Then item 1 is deleted. But now, page 1 is 2 – 101 and so when I fetch page 2 now, I will get items starting with 102. This means I will never see item 101. That's what I've been talking the whole time.
@GeorgeEdison, I'm not worried that I won't see an item that was deleted while I was enumerating. I'm worried that deleting that item changes paging and so I won't see some item that wasn't deleted. And if you mean I should start enumerating anew when I detect deletion, that could easily lead to basically infinite cycle. And it's not reliable either. If some item is deleted and another is undeleted, it looks like nothing changed.
@GeorgeEdison, I don't understand. Wouldn't that mean I get only items created since I started the query? If you meant, todate, that wouldn't help either, because items can be deleted and undeleted.