hi there, quick question! I'm using pagination as per this docs: https://appwrite.io/docs/products/databases/pagination
now, and I'm loading only 5 docs per page, still it's taking too much time to load single page, even 1st page. why? i tried both offset & cursor based both takes time.
TL;DR
Developers are experiencing slow speed with pagination even when loading only 5 documents per page. A suggestion was made to add an ascending key index on the column 'name'. Additionally, clarifying questions were asked about the queries, the number of documents in the collection, and the location of the developer. They are using pagination according to Appwrite's documentation, but are still encountering delays.- What exactly are all your queries?
- How many documents do you have in your collection?
- Where are you located?
- Queries:
TypeScript
Query.orderAsc("name"),
Query.limit(table.rowsPerPage), // table.rowsPerPage == 5
Query.cursorAfter(tableData[tableData.length - 1].$id), // using last doc's id
- 32 Documents
- India
I'm on pro plan with appwrite cloud.
And how long does this take?
Can you try adding an ascending key index on name?
14-16 secs
Recommended threads
- trying to figure out how to activate my...
please help
- I'm experiencing a critical bug on Appwr...
Hey <@870607367597850624> team / support š I'm experiencing a critical bug on Appwrite Cloud that's blocking my production Flutter app. I've already filed GitH...
- Bug: TOTP MFA verification always fails ...
*Bug: TOTP MFA verify always returns `user_invalid_token` (Cloud 1.8.1, Frankfurt)** Project ID: `68dd48440003e537d849` SDK: `appwrite@18.2.0` (also tested wit...