-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query performance is slow with larger amount of items #18
Comments
Might be a good idea to add some benchmarks that run in CI with |
Yeah, that was definitely the intention, just haven't gotten around to doing so... And it wasn't a super high priority as I didn't notice any performance problems, but now my OG Image generation is taking 8 seconds and that is untenable so will have to prioritize this haha :D |
Quite fruitless efforts, running benchmarks on my local machine atleast, with 10,000 items, I'm getting p995 times of 24 microseconds on |
For posterity; benchmark was written late at night and as such it was incorrect, here are the real results: 🍔 Created 10000 mock double cheeseburger orders. file:///Users/rasmus/Desktop/DEV/Web/pentagon/bench/crud_bench.ts findFirst > where 40.17 ms/iter(37.89 ms … 42.32 ms) 41.57 ms 42.32 ms 42.32 ms
|
The latest |
Version |
With a large amount of items, there's performance problems on the edge. Will have to investigate whether it's because of Pentagon's bad implementation or something on Deno KV's end. |
With about 7000 items, an API GET request with a
findMany()
query takes about 8 seconds. The duration of the query (linearly?) correlates with the amount of items.The text was updated successfully, but these errors were encountered: