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

improve mvcc with index, undo, rollback, catalog, etc #155

Merged
merged 1 commit into from
Jan 26, 2025
Merged

Conversation

jiangzhe
Copy link
Owner

Improve MVCC with following:

  1. Add simple catalog to retrieve table instance for statement-level rollback.
  2. Implement unique index with single-key and multi-key partitioned btree map.
  3. Simple SmartKey for index key(not used).
  4. Statement-level rollback.
  5. lightweight row undo log structure refactor.
  6. Index undo for rollback and GC.
  7. Reborn branch in row undo chain.

@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 38.02661% with 559 lines in your changes missing coverage. Please review.

Project coverage is 70.36%. Comparing base (1220556) to head (e420292).

Files with missing lines Patch % Lines
doradb-storage/src/table/mod.rs 39.22% 189 Missing ⚠️
doradb-storage/src/value.rs 13.84% 112 Missing ⚠️
doradb-storage/src/index/secondary_index.rs 25.78% 95 Missing ⚠️
doradb-storage/src/index/smart_key.rs 0.00% 55 Missing ⚠️
doradb-storage/src/trx/row.rs 29.31% 41 Missing ⚠️
doradb-storage/src/table/schema.rs 67.21% 20 Missing ⚠️
doradb-datatype/src/konst.rs 0.00% 16 Missing ⚠️
doradb-storage/src/trx/undo/row.rs 65.85% 14 Missing ⚠️
doradb-storage/src/row/mod.rs 70.00% 9 Missing ⚠️
doradb-storage/src/trx/undo/index.rs 88.57% 4 Missing ⚠️
... and 3 more

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #155      +/-   ##
==========================================
- Coverage   71.58%   70.36%   -1.23%     
==========================================
  Files         142      144       +2     
  Lines       19707    20281     +574     
==========================================
+ Hits        14108    14271     +163     
- Misses       5599     6010     +411     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jiangzhe jiangzhe merged commit 7fbdb94 into main Jan 26, 2025
1 check passed
@jiangzhe jiangzhe deleted the improve-mvcc branch January 26, 2025 08:26
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