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

In place deletes #43

Open
sullivan- opened this issue Sep 22, 2017 · 1 comment
Open

In place deletes #43

sullivan- opened this issue Sep 22, 2017 · 1 comment

Comments

@sullivan-
Copy link
Member

sullivan- commented Sep 22, 2017

Add methods Repo.deleteByKeyVal and Repo.deleteByQuery to delete lots of rows "in place", i.e., without loading them from the database first.

Perhaps we should put these in Repo.inplace.deleteByKeyVal and Repo.inplace.deleteByQuery so as to keep the Repo API from getting too cluttered. In this picture we would have a val Repo.inplace with type InPlaceUpdates or some such. Note that in place methods updateByKeyVal and updateByQuery described in another ticket.

  • Implement in all four back ends (Cassandra, JDBC, InMem, MongoDB).
  • Add integration test for deleteByKeyVal in RepoCrudSpec.
  • Add integration tests for deleteByQuery in longevity.integration.queries. It may take a little bit of thought and discussion to come up with a minimal set of tests here to cover cases.
@sullivan-
Copy link
Member Author

This is by no means a small piece of work, but there is nothing particularly tricky about it either.

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

No branches or pull requests

1 participant