fluree / db

Fluree database library
https://fluree.github.io/db/
Other
330 stars 21 forks source link

Feature/schema in index #775

Closed bplatz closed 1 month ago

bplatz commented 1 month ago

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.