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

Divide and apply long DML which overs limit (20,000) #16

Open
110y opened this issue Dec 6, 2019 · 3 comments
Open

Divide and apply long DML which overs limit (20,000) #16

110y opened this issue Dec 6, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@110y
Copy link
Collaborator

110y commented Dec 6, 2019

WHAT

  • Divide and apply long DML which overs limit (20,000)
    • Cloud Spanner does not allow DML which overs limit.

WHY

  • Currently if we would like to apply DML overs the limit, we must divide DML into some partials and it is tedious.
@110y 110y added the enhancement New feature or request label Dec 6, 2019
@110y
Copy link
Collaborator Author

110y commented Dec 6, 2019

We would like to do so not only for Partitioned-DML but also Insert.

@AlexanderMann
Copy link

@110y looking at leveraging this in our infrastructure. Curious as to what work you think is present to land this feature as we also think this is a limiting factor.

ie, I'd be happy to help take on some maintenance work, just dunno if you have an idea/plan for how to pull this off.

@110y
Copy link
Collaborator Author

110y commented Aug 22, 2020

@AlexanderMann

Thank you for commenting.

For now, GCP does not provide any documentations about how to count Spanner mutations. But there are some experiments to count mutations like this: https://github.com/sinmetal/mutation_count_playground.

My current idea is:

  • Getting a table structure from information_schema table (including indexes).
  • Parsing a DML queries to count a number of columns (and indexes) which will be applied.
  • Calculating a number of mutations which will be applied by following experiments mentioned above.
  • Dividing DML queries to make the queries be possible to be applied to Spanner.

ie, I'd be happy to help take on some maintenance work

Awesome! If you would help this issue, I'll review it.

just dunno if you have an idea/plan for how to pull this off.

Although I've written current idea in above, let me know if you have any another ideas, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants