Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RocksDB big refactor - use single DB with Column Families
previously, we used 7 synchronized RocksDB Databases, but with the lack of transaction support, we started facing synchronization problems in this PR we are switching away from multiple DBs and using a single DB with multiple column families (CFs), beyond solving the transaction problem, we also see a performance improvement for batch writes a Column Family (CF) can be thought as a table in PostgreSQL, where you can store data under different schemas, and have the same key pointing to two (or more) different pieces of data adding a prefix to the database path still works, but now it's for the single DB folder instead of the 7 folders like before --- squashed messages: - unify 7 DBs into one - optimize `save_block` - add flag to disable backups - stop bundling "current_block" and other data into the DBs - remove iterator support for special keys and indexes (bundled info) - make iterator exit on deserialization errors - change size of table caches - e2e: verify block number after resetting chain (to check `reset_at`) - simplify db creation for tests - refac stuff: docs, logs, rename, move code, optimize, fixes, etc - simplify `importer-offline` main
- Loading branch information