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.
- What exactly are all your queries?
- How many documents do you have in your collection?
- Where are you located?
- Queries:
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
- Helping in unblock my account
I deleted my Appwrite Cloud account that was linked via GitHub. Now I activated my GitHub Student Pack and want to sign up again using the same GitHub account, ...
- Not allowed permission to upsert a prese...
```js const presenceID = ID.unique(); setPID(presenceID); const presence = await presences.upsert({ presenceId: presenceID, status: "online"...
- Finding job
Hi. I am a full-stack developer with experience in developing scalable and user-friendly web applications. I handle both front-end and back-end development, im...