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

Batch operations on multiple tables encapsulation #159

Open
GingerMoon opened this issue May 26, 2020 · 2 comments
Open

Batch operations on multiple tables encapsulation #159

GingerMoon opened this issue May 26, 2020 · 2 comments

Comments

@GingerMoon
Copy link
Contributor

Use cases:

  1. Single entity: Employ{id, first name, second name, nick name, age}
    I want to search by nick name, so I will have two tables for this single entity:
    employ and employ_by_nickname. (I don't want to use materialized view)
    I need encapsulations including the CRUD, find_by_id, find_by_nickname, update "nick name".
    (In order to udpate "nick name", I need to delete the existing one first because nick name is the partition key of employ_by_nickname.)

  2. Multiple entities (one table for every entity). Create, update, delete needs to be in the same batch.

I'd like to contribute the encapsulated code. Will you be interested?

@mmatczuk
Copy link
Contributor

YES, Batch support is very poor at the moment.

Relates to #110

@GingerMoon
Copy link
Contributor Author

Thanks @mmatczuk for the interest. I made a PR as a draft version for the purpose of POC.
The code has't been carefully polished yet.
Please just have a quick look and let me know if this is what we want.
Then I will spend some time on polishing the PR.

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

2 participants