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

Add SA executemany compiled cache support #376

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

katajakasa
Copy link

Add compiled_cache support for SAConnection.executemany. Add tests for INSERT and UPDATE cases.

@codecov
Copy link

codecov bot commented Jan 20, 2019

Codecov Report

Merging #376 into master will increase coverage by 0.03%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #376      +/-   ##
==========================================
+ Coverage   92.28%   92.32%   +0.03%     
==========================================
  Files           9        9              
  Lines        1180     1186       +6     
  Branches      172      174       +2     
==========================================
+ Hits         1089     1095       +6     
  Misses         64       64              
  Partials       27       27
Impacted Files Coverage Δ
aiomysql/sa/connection.py 93.53% <100%> (+0.19%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 66d8657...9183e27. Read the comment docs.

@terricain
Copy link
Collaborator

Other than that list comprehension, it looks great 😄

@katajakasa
Copy link
Author

Okay, so I dropped the extra checks. Turns out those were not actually needed plus they were a perf hit when adding larger amounts of rows. Also added a testcase for DELETE :)

@katajakasa katajakasa force-pushed the add-executemany-compiled-cache branch from 0807cbd to 9183e27 Compare January 21, 2019 23:08
@terricain
Copy link
Collaborator

This good to go now?

@katajakasa
Copy link
Author

@terrycain Yes, this is good to go.

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

Successfully merging this pull request may close these issues.

3 participants