Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello!
Thanks for the work you have done!
I was looking for a benchmark to test a system which does have transaction features, but simpler than TPCC. I stumbled upon YCSB+T (#169). I wanted something like this, unfortunately this was never merged.
I implemented something similar myself. It is a very simple closed economy model. It adds an integer field to the documents (
balance
) and adds atransfer
operation to the DB. Thistransfer
operation represents a transaction where a certain amount of balance is subtracted from one document and added to another.For this to work I also added an
insert
operation where the workload can set an initial balance for the documents. I also added adeleteAndTransfer
operation. This deletes a document and transfers all of its balance to another document.The implementation of these "transactional" operations (
transfer
anddeleteAndTransfer
) is left to the DB binding.I created a workload which includes these new operations.
I also added a REST client binding which implements the new operations.
I think I will add a validation step (as described in #169) as well.
I am interested to hear what you think of this addition and whether you think it could be a good addition to YCSB.