GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: use DML batches in `executemany()` method by IlyaFaer · Pull Request #412 · googleapis/python-spanner

This repository was archived by the owner on Jun 8, 2026. It is now read-only.

Conversation

@IlyaFaer

@IlyaFaer IlyaFaer commented Jul 14, 2021

Copy link
Copy Markdown

No description provided.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
IlyaFaer
feat: use mutations for executemany() inserts
168dfb4
@IlyaFaer IlyaFaer added api: spanner Issues related to the googleapis/python-spanner API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. labels Jul 14, 2021
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Jul 14, 2021
olavloite
olavloite reviewed Jul 14, 2021
View reviewed changes
Comment thread google/cloud/spanner_dbapi/cursor.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google/cloud/spanner_dbapi/cursor.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

IlyaFaer added 2 commits July 15, 2021 12:16
IlyaFaer
add unit test and fix parsing
35bce43
IlyaFaer
add use_mutations flag into Connection class
2540ff7
olavloite
olavloite reviewed Jul 16, 2021
View reviewed changes
Comment thread google/cloud/spanner_dbapi/connection.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google/cloud/spanner_dbapi/cursor.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

IlyaFaer added 2 commits July 19, 2021 11:12
IlyaFaer
use three-values flag for use_mutations
0f8a8ff
IlyaFaer
update docstrings
1aa1359
@IlyaFaer
IlyaFaer requested a review from larkee July 19, 2021 09:16
IlyaFaer added 4 commits July 20, 2021 13:55
IlyaFaer
use batch DMLs for executemany() method
dcc1a94
IlyaFaer
prepare args before inserting into SQL statement
60d2d1a
IlyaFaer
erase mutation mentions
b919443
IlyaFaer
next step
e70ace8
skuruppu
skuruppu reviewed Jul 23, 2021
View reviewed changes
Comment thread google/cloud/spanner_dbapi/cursor.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

skuruppu
skuruppu reviewed Jul 23, 2021
View reviewed changes
Comment thread tests/unit/spanner_dbapi/test_cursor.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

olavloite
olavloite reviewed Jul 23, 2021
View reviewed changes
Comment thread google/cloud/spanner_dbapi/cursor.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google/cloud/spanner_dbapi/cursor.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

IlyaFaer added 2 commits July 23, 2021 13:59
IlyaFaer
Merge branch 'master' into mutations_support
c75bbbf
IlyaFaer
next step
62c1b2b
IlyaFaer
IlyaFaer commented Jul 26, 2021
View reviewed changes
Comment thread google/cloud/spanner_dbapi/connection.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

IlyaFaer
next step
62b937d
olavloite
olavloite reviewed Jul 27, 2021
View reviewed changes
Comment thread google/cloud/spanner_dbapi/cursor.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google/cloud/spanner_dbapi/cursor.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google/cloud/spanner_dbapi/cursor.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google/cloud/spanner_dbapi/cursor.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread tests/unit/spanner_dbapi/test_connection.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

IlyaFaer added 2 commits July 27, 2021 11:38
IlyaFaer
fixes
d34ae20
IlyaFaer
add unit tests for UPDATE and DELETE statements
cdc2faf
olavloite
olavloite reviewed Jul 27, 2021
View reviewed changes
Comment thread google/cloud/spanner_dbapi/cursor.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google/cloud/spanner_dbapi/connection.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

IlyaFaer added 4 commits July 27, 2021 14:27
IlyaFaer
don't propagate errors to users on retry
a0f60d2
IlyaFaer
lint fixes
aec86e3
IlyaFaer
use run_in_transaction
924430a
IlyaFaer
refactor the tests code
d66d401
IlyaFaer added 2 commits July 29, 2021 10:56
IlyaFaer
Merge branch 'master' into mutations_support
3e623e4
IlyaFaer
fix merge conflict
404e521
@IlyaFaer
IlyaFaer marked this pull request as ready for review July 29, 2021 09:26
@IlyaFaer
IlyaFaer requested a review from a team July 29, 2021 09:26
@IlyaFaer IlyaFaer added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 30, 2021
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 30, 2021
@IlyaFaer IlyaFaer changed the title feat: use mutations for executemany() inserts feat: use DML batches in executemany() method Jul 30, 2021
IlyaFaer
fix the unit test
916ec7a
olavloite
olavloite reviewed Aug 3, 2021
View reviewed changes
Comment thread google/cloud/spanner_dbapi/connection.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google/cloud/spanner_dbapi/connection.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google/cloud/spanner_dbapi/cursor.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

IlyaFaer
revert some changes
6125727
olavloite
olavloite approved these changes Aug 4, 2021
View reviewed changes
larkee
larkee reviewed Aug 9, 2021
View reviewed changes

@larkee larkee left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but would you mind updating the DML in the test_execute_many system test so that we are testing this feature against the emulator and production?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

IlyaFaer reacted with rocket emoji
All reactions
  • 🚀 1 reaction
IlyaFaer added 2 commits August 9, 2021 11:33
IlyaFaer
use executemany for test data insert
b22be98
IlyaFaer
Merge branch 'master' into mutations_support
ac1d8b9
larkee
larkee approved these changes Aug 9, 2021
View reviewed changes
@larkee
Merge branch 'master' into mutations_support
8431011
@larkee
larkee merged commit cbb4ee3 into googleapis:master Aug 9, 2021
@IlyaFaer
IlyaFaer deleted the mutations_support branch August 9, 2021 13:30
tseaver added a commit that referenced this pull request Aug 9, 2021
@tseaver
tests: replicate dbapi systest changes from #412 into new module
d77365f
larkee pushed a commit that referenced this pull request Aug 11, 2021
@tseaver
tests: move systests into separate modules, refactor using pytest (#474)
5629bac
* tests: move instance API systests to own module

Refactor to use pytest fixtures / idioms, rather than old 'Config'
setup / teardown.

Toward #472.

* tests: move database API systests to own module

Refactor to use pytest fixtures / idioms, rather than old 'Config'
setup / teardown.

Toward #472.

* tests: move table API systests to own module

Refactor to use pytest fixtures / idioms, rather than old 'Config'
setup / teardown.

Toward #472.

* tests: move backup API systests to own module [WIP]

Refactor to use pytest fixtures / idioms, rather than old 'Config'
setup / teardown.

Toward #472.

* tests: move streaming/chunnking systests to own module

Refactor to use pytest fixtures / idioms, rather than old 'Config'
setup / teardown.

Toward #472.

* tests: move session API systests to own module

Refactor to use pytest fixtures / idioms, rather than old 'Config'
setup/ teardown.

Toward #472.

* tests: move dbapi systests to owwn module

Refactor to use pytest fixtures / idioms, rather than old 'Confog'
setup / teardown.

Toward #472.

* tests: remove legacy systest setup / teardown code

Closes #472.

* tests: don't pre-create datbase before restore attempt

* tests: fix instance config fixtures under emulator

* tests: clean up alt instnce at module scope

Avoids clash with 'test_list_instances' expectatons.

* tests: work around MethodNotImplemented

Raised from 'ListBackups' API on the CI emulator, but not locally.

* chore: drop use of pytz in systests

See #479 for rationale.

* chore: fix fossil in comment

* chore: move '_check_batch_status' to only calling module

Likewise the 'FauxCall' helper class it uses.

* chore: improve testcase name

* tests: replicate dbapi systest changes from #412 into new module
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

3 more reviewers
@skuruppu skuruppu skuruppu left review comments
@olavloite olavloite olavloite approved these changes
@larkee larkee larkee approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

api: spanner Issues related to the googleapis/python-spanner API. cla: yes This human has signed the Contributor License Agreement. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@IlyaFaer @skuruppu @olavloite @larkee @yoshi-kokoro
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.