-
Notifications
You must be signed in to change notification settings - Fork 71
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
Batch operations #87
Comments
Hi! Sorry for the late reply! Do you mean something exactly like the bbolt Batch method you linked to, where the docs say:
Or do you mean batch methods in general, where you can set/delete multiple values within a single transaction, so the required Method signature options could then be (for this latter understanding of what you mean with batch):
(https://play.golang.org/p/HlOR1I6P81f) But: Not all of the databases that have a What do you think? |
Hey! Yes I meant to say that the bbolt batch method could call the underlying bbolt batch method as I had linked earlier.
Yes precisely this. Where it makes sense, the implementation will call the batch operation for that datastore. Where it doesn't, we could invoke Set multiple times, or better and more safer, not have it implemented and leave the decision on the user to decide if they wanted to implement it themselves (by wrapping regular Set in a loop, interface embedding and extending it, etc.) |
for atomicity, we can take a mutex... and then call loop of sets... no ? |
Hello!
Thank you for this wonderful library, I really like the simplicity of it.
Would there be in the future support for batch updates and/or additions? For example BoltDB has support for Batch updates.
The text was updated successfully, but these errors were encountered: