Appwrite Database + Appwrite Functions: Ensuring consistent pagination under concurrent writes
Goal: Retrieve all documents from a collection in a deterministic order while using an Appwrite Function to process each batch, without missing or duplicating entries when writes occur between batches. Constraints: The Database listDocuments endpoint only offers limit and offset, with a hard limit of 100 documents per request; offset‑based pagination is sens