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

Introduce the Env::nested_read_txn from an RwTxn #307

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Kerollmops
Copy link
Member

@Kerollmops Kerollmops commented Jan 23, 2025

This PR is a first attempt at patching LMDB to generate multiple RoTxn from an RwTxn and therefore be able to read, in parallel, the content of an uncommitted RwTxn. We can run many algorithms in Meilisearch to process the written content and generate new data structures before committing the transaction.

This first attempt uses a broken fork of LMDB that ignores the number of nested write transactions associated with the parent one. Therefore, it lets heed create multiple nested write transactions from the parent one (dangerous). We store those write transactions in RoTxns shells to disallow, at the compilation level, writing anything with them.

Note the CI is broken but it works locally so it's maybe a submodule issue (always a submodule issue) 🤔 It was...

@Kerollmops Kerollmops force-pushed the allow-nested-rtxn-from-wtxn branch from 9df5ad8 to 09d1167 Compare January 24, 2025 09:38
@Kerollmops Kerollmops force-pushed the allow-nested-rtxn-from-wtxn branch from 95d39b5 to f7651f0 Compare January 24, 2025 09:46
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.

1 participant