-
Notifications
You must be signed in to change notification settings - Fork 2.8k
optimise building schema cache (close #1430) #2120
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
optimise building schema cache (close #1430) #2120
Conversation
Resolve Conflicts: server/src-lib/Hasura/RQL/DDL/Schema/Table.hs
|
Deploy preview for hasura-docs ready! Built with commit 7a22564 |
|
Review app for commit b423590 deployed to Heroku: https://hge-ci-pull-2120.herokuapp.com |
|
Review app for commit 089a8f8 deployed to Heroku: https://hge-ci-pull-2120.herokuapp.com |
|
Review app for commit fb97ff8 deployed to Heroku: https://hge-ci-pull-2120.herokuapp.com |
|
Review app for commit 4d7ae19 deployed to Heroku: https://hge-ci-pull-2120.herokuapp.com |
|
Review app for commit e3235f7 deployed to Heroku: https://hge-ci-pull-2120.herokuapp.com |
|
Review app for commit 7a22564 deployed to Heroku: https://hge-ci-pull-2120.herokuapp.com |
|
Review app https://hge-ci-pull-2120.herokuapp.com is deleted |
1. Reuses postgres connections during startup which reduces the overhead of opening and closing connections. 2. Faster schema cache building. This is done by fetching all the required data in a single sql statement.
V3_GIT_ORIGIN_REV_ID: 35f4aa26035484dafe368904f7e42449766bf735
Description
Optimise building schema cache from the database catalog by pre-fetching all required metadata in a single SQL query. Thus improve startup time.
Time taken to build the schema cache of ~ 300 tracked tables
Before: 0.919415837 sec
After: 0.118941213 sec
Update 1:- With 323 tables and 1312 relationships
Before: 6.345624524 sec
After: 0.264985661 sec
Affected components
Related Issues
close #1430
Solution and Design
Steps to test and verify
Limitations, known bugs & workarounds