Paginate is 4-5X slower than returning all records #1145
Replies: 4 comments 2 replies
-
Please measure the result time without returning anything in GraphQL, just benchmark the |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
@mfn Using xdebug, I stepped into the |
Beta Was this translation helpful? Give feedback.
-
But AFAIK this graphql library is not involved in those code parts, right? 🤔 |
Beta Was this translation helpful? Give feedback.
-
I have a query that is taking 50+ seconds right now locally.
When I run it with paginate it's 50+ seconds, but when I drop the paginate it returns all of the records in 15 seconds.
Because we have a ton of data, this is okay to return in ~ 15-20 seconds.
Why is the paginate adding so much time and how can we fix this?
Here is a video I sent to a colleague demonstrating the issue
https://www.loom.com/share/ffc1375e08e2445580593820ddbc8ef6?sid=2627d20b-8ac9-4508-865d-97b698b8f7f0
Even trying simplePaginate is slow
Here is the query
Beta Was this translation helpful? Give feedback.
All reactions