Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refac: RocksDB Column Families #871

Merged
merged 2 commits into from
Jun 18, 2024
Merged

refac: RocksDB Column Families #871

merged 2 commits into from
Jun 18, 2024

Conversation

marcospb19-cw
Copy link
Contributor

No description provided.

@marcospb19-cw marcospb19-cw force-pushed the cf_poc branch 10 times, most recently from 1aa2f71 to 8230b3a Compare May 24, 2024 23:31
@marcospb19-cw marcospb19-cw force-pushed the cf_poc branch 10 times, most recently from 648bf38 to 5b324db Compare May 29, 2024 16:37
@marcospb19-cw marcospb19-cw marked this pull request as ready for review May 29, 2024 20:35
@marcospb19-cw marcospb19-cw requested a review from a team as a code owner May 29, 2024 20:35
@marcospb19-cw marcospb19-cw force-pushed the cf_poc branch 8 times, most recently from aa07e33 to fa08beb Compare June 3, 2024 21:47
@marcospb19-cw marcospb19-cw force-pushed the cf_poc branch 9 times, most recently from d1e7e44 to 523fe9e Compare June 10, 2024 23:23
@marcospb19-cw marcospb19-cw force-pushed the cf_poc branch 6 times, most recently from 61fc4b8 to 165ff10 Compare June 17, 2024 22:10
@marcospb19-cw marcospb19-cw force-pushed the cf_poc branch 2 times, most recently from 5d22e14 to 8cfdf3c Compare June 18, 2024 19:38
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
@marcospb19-cw marcospb19-cw enabled auto-merge (squash) June 18, 2024 20:17
@mayconamaroCW mayconamaroCW disabled auto-merge June 18, 2024 20:29
@mayconamaroCW mayconamaroCW merged commit 989a2e1 into main Jun 18, 2024
22 of 24 checks passed
@mayconamaroCW mayconamaroCW deleted the cf_poc branch June 18, 2024 20:29
@marcospb19-cw marcospb19-cw changed the title Use RocksDB Column Families refac: RocksDB Column Families Jul 21, 2024
marcospb19-cw added a commit that referenced this pull request Aug 7, 2024
this contribution was mistakenly removed by #871
marcospb19-cw added a commit that referenced this pull request Aug 7, 2024
this contribution was mistakenly removed by #871
marcospb19-cw added a commit that referenced this pull request Aug 7, 2024
this contribution was mistakenly removed by #871
marcospb19-cw added a commit that referenced this pull request Aug 13, 2024
this contribution was mistakenly removed by #871
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants