graphql-engine/server/src-lib/Hasura/RQL/DDL
Brandon Simmons 58ba01f31c
Improve performance of replace_metadata on tracking tables. Closes #3802 (#4182)
* Improve performance of replace_metadata on tracking tables. Closes #3802

On the 1000 table track case this went from >20min to 8 seconds, the
bottleneck being all the former calls (for each table) to
buildSchemaCache.

* refactor replace metadata

Only save metadata in hdb_catalog schema and build schema cache (strictly)

* remove `withBuildSchemaCache` function

Co-authored-by: rakeshkky <12475069+rakeshkky@users.noreply.github.com>
Co-authored-by: Vamshi Surabhi <0x777@users.noreply.github.com>
2020-03-31 19:30:12 +05:30
..
Metadata option to reload remote schemas in 'reload metadata' (fix #3792, #4117) (#4141) 2020-03-26 17:22:20 +05:30
Permission few actions' fixes and improvements (fix #3977, #4061 & close #4021) (#4109) 2020-03-20 12:16:45 +05:30
Relationship fix few bugs related to nested insert returning (fix #3609, #3642, #3271) (#3618) 2020-02-04 21:04:17 +05:30
Schema Improve performance of replace_metadata on tracking tables. Closes #3802 (#4182) 2020-03-31 19:30:12 +05:30
Action.hs few actions' fixes and improvements (fix #3977, #4061 & close #4021) (#4109) 2020-03-20 12:16:45 +05:30
ComputedField.hs incremental metadata: Clean up a few lingering loose ends 2020-01-08 17:19:03 -06:00
CustomTypes.hs few actions' fixes and improvements (fix #3977, #4061 & close #4021) (#4109) 2020-03-20 12:16:45 +05:30
Deps.hs Add caching for recreating event trigger functions 2020-01-08 16:45:46 -06:00
EventTrigger.hs fix update event trigger & dropping triggers on run_sql, fix #3803 #3784 (#3833) 2020-02-05 18:24:26 +05:30
Headers.hs allow custom mutations through actions (#3042) 2020-02-13 23:08:23 +05:30
Metadata.hs Improve performance of replace_metadata on tracking tables. Closes #3802 (#4182) 2020-03-31 19:30:12 +05:30
Permission.hs Add check expresion to update permissions (close #384) (#3804) 2020-02-13 13:08:49 +05:30
QueryCollection.hs Refactor schema cache construction to avoid imperative updates 2020-01-08 16:43:06 -06:00
Relationship.hs Add fast path for server internal metadata migrations (#3686) 2020-01-14 01:09:10 -06:00
RemoteSchema.hs Improve performance of replace_metadata on tracking tables. Closes #3802 (#4182) 2020-03-31 19:30:12 +05:30
Schema.hs fix update event trigger & dropping triggers on run_sql, fix #3803 #3784 (#3833) 2020-02-05 18:24:26 +05:30
Utils.hs Remove any outstanding hdb_views (fixes #3940) (#3965) 2020-03-26 15:42:33 -05:00