Skip to content
This repository has been archived by the owner on Sep 28, 2023. It is now read-only.

Use atomic batching of writes #4

Open
wants to merge 1 commit into
base: rocks_3.0
Choose a base branch
from

Conversation

hashbrowncipher
Copy link

Under the hood, RocksDB->put uses batches anyway. This makes the use "over the
hood". I'm guessing it also means that we only have to acquire locks against
the memtable+WAL once, instead of multiple times.

Testing: ant test -Dtest.name=RocksDBCFTest

@facebook-github-bot
Copy link

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

Under the hood, RocksDB->put uses batches anyway. This makes the use "over the
hood". I'm guessing it also means that we only have to acquire locks against
the memtable+WAL once, instead of multiple times.
}
finally
{
indexer.commit();
Copy link
Author

Choose a reason for hiding this comment

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

I'm not sure about this. Why do we commit the indexer when we've experienced an exception?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants