-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
PostgREST takes a lot of time to make first embedding request with big schema #2450
Comments
I assume parsing the query result when loading the schema cache is actually done lazily - so only happens when the schema cache is used the first time. |
This comment was marked as outdated.
This comment was marked as outdated.
From https://stackoverflow.com/a/2777842/4692662 The above is what is happening on our case. Just replace "reading from file" with "querying the db". I'm working on a logging improvement that clears the difference between "querying the schema cache" and "parsing the schema cache".
Now it can be seen that parsing takes longer than querying on the |
Decided not to show that part in #3213. The user cannot do anything for slowing down the parsing time. It could be confusing to include it. The logs now look like:
Nothing to do here since we haven't had reports about parsing being slow. Closing again. |
Environment
Description of issue
Using the big schema in this repo as an example, the first PostgREST start up takes a little while, after that, doing this query:
curl 'localhost:3000/projects?select=clients(*)'
takes a very long time. This may have to do with searching inside the schema cache. The subsequent requests are fast though.
I tested this for PosgREST v8, v9 and v10 with the same results.
The text was updated successfully, but these errors were encountered: