This PR serializes the full :schema in the index-root.
Previously, the :schema was partially serialized, but required a series of queries upon db load to get all the data that was required for a full :schema. This results in loading possibly many index nodes and was a substantial delay for large databases.
In one large database used for testing, this change reduces the db load time from ~45 seconds to ~15 seconds (still a long time, but substantially better).
Now, a db can 'load' without requiring any queries.
This PR serializes the full
:schema
in the index-root.Previously, the
:schema
was partially serialized, but required a series of queries upon db load to get all the data that was required for a full:schema
. This results in loading possibly many index nodes and was a substantial delay for large databases.In one large database used for testing, this change reduces the db load time from ~45 seconds to ~15 seconds (still a long time, but substantially better).
Now, a db can 'load' without requiring any queries.