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

Optimization: use recoveryUnit to avoid read on updates #2

Open
benmccann opened this issue Apr 14, 2015 · 1 comment
Open

Optimization: use recoveryUnit to avoid read on updates #2

benmccann opened this issue Apr 14, 2015 · 1 comment

Comments

@benmccann
Copy link

From https://jira.mongodb.org/browse/SERVER-15793:

It would seem that the storage engine's recoveryUnit could just hold on to the pointer or the length itself when dataFor is called if that is an optimization that helps the storage engine.

@igorcanadi
Copy link
Contributor

Tnx @benmccann. Yeah, I think it's worth playing around with this idea some more. Basically in RecoveryUnit we can detect write transaction and if it's write transaction just cache the size of all keys read (we only need the size of the value, not the actual value). We're currently busy with getting this baby up n running in production and 'update' performance is not on the top of our todo list. But it's definitely a low-hanging fruit we shall tackle once we start to optimize.

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

No branches or pull requests

2 participants