Skip to content

Always insert db_version in cache#21

Merged
somtochiama merged 1 commit into
mainfrom
somtochi/db-vers
Mar 30, 2026
Merged

Always insert db_version in cache#21
somtochiama merged 1 commit into
mainfrom
somtochi/db-vers

Conversation

@somtochiama
Copy link
Copy Markdown

@somtochiama somtochiama commented Mar 30, 2026

Previously, we'd only update the lastDbVersions map if it is bigger than what is currently in the database. This made the cache a little useless since it is cleared on commit/rollback and for most transaction, we'd be processing older db_versions. Now we'd set it to the biggest db_version encountered during the transaction so we don’t repeatedly attempt to update the db_version in the database.

Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
@somtochiama somtochiama requested a review from gorbak25 March 30, 2026 17:15
Copy link
Copy Markdown

@gorbak25 gorbak25 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! Will submit some tests for it

@somtochiama somtochiama merged commit f074783 into main Mar 30, 2026
9 checks passed
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