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

Document the semantics of batch. #102

Open
Stebalien opened this issue Oct 23, 2018 · 5 comments
Open

Document the semantics of batch. #102

Stebalien opened this issue Oct 23, 2018 · 5 comments

Comments

@Stebalien
Copy link
Member

  • Can it flush early?
  • How is it different from a transaction?

Currently, it's entirely undocumented.

@Stebalien
Copy link
Member Author

@bigs @magik6k thoughts?

@bigs
Copy link
Contributor

bigs commented Oct 24, 2018

i'd push to have it's semantics not be transactional, i.e. writes in a Batch are not guaranteed to happen in the same iota of time. i'd say early flush is a no?

@Stebalien
Copy link
Member Author

Yeah, those both sound like good ideas. Transactions are batches but batches aren't transactions (and can partially fail). Would you have time to document this (on the interface definition)?

@bigs
Copy link
Contributor

bigs commented Oct 24, 2018

absolutely!

@raulk
Copy link
Member

raulk commented Oct 24, 2018

We can also characterise them in terms of properties. Batches provide no ACID guarantees and are mainly used for performance reasons; transactions provide atomicity and isolation guarantees.

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

3 participants