PocketBase Request Performance Question #7231
-
|
I’ve been testing PocketBase performance and noticed something interesting. Context
Steps to Reproduce
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
If you can't provide a minimal reproducible example, then I don't think anyone will be really able to assist you but this time I'll not delete your post since at least you've provided some details, maybe somebody else will be able to help you. Unfortunately I don't think I'll be much of help as I don't have a sandboxed environment to download and run random files, so I can't test your backup, but the main culprits for the "slow" response times in your case could be because your collections have a lot of fields. Even ignoring the expands, just the single main queried collection has ~30 fields on its own and that is a lot. While the SQLite query itself could execute very fast, the data from that query still needs to be loaded in the appropriate Go structs, normalized and then JSON serialized and transferred over the wire to the client (this includes localhost). All of these operations could take some time. Counter intuitively, the So, if 140ms is not acceptable as response time for your use case, my suggestions would be:
|
Beta Was this translation helpful? Give feedback.
If you can't provide a minimal reproducible example, then I don't think anyone will be really able to assist you but this time I'll not delete your post since at least you've provided some details, maybe somebody else will be able to help you.
Unfortunately I don't think I'll be much of help as I don't have a sandboxed environment to download and run random files, so I can't test your backup, but the main culprits for the "slow" response times in your case could be because your collections have a lot of fields.
Even ignoring the expands, just the single main queried collection has ~30 fields on its own and that is a lot. While the SQLite query itself could execute very fast, the data from…