-
-
Notifications
You must be signed in to change notification settings - Fork 813
Closed
Labels
Description
When databases are loaded,
Lines 257 to 260 in cb1e093
| for file in self.files: | |
| self.add_database( | |
| Database(self, file, is_mutable=file not in self.immutables) | |
| ) |
there is nothing preventing the rehashing of the database for immutable databases.
datasette/datasette/database.py
Lines 50 to 53 in cb1e093
| if not self.is_mutable and not self.is_memory: | |
| p = Path(path) | |
| self.hash = inspect_hash(p) | |
| self.cached_size = p.stat().st_size |
what i might expect is that relevant values of inspect_data get passed to the Database class to prevent re-hashing?
With data that is many gigs large, this is a significant start up time.
Reactions are currently unavailable