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

Efficient batch operations #18

Open
amotl opened this issue Dec 3, 2020 · 0 comments
Open

Efficient batch operations #18

amotl opened this issue Dec 3, 2020 · 0 comments

Comments

@amotl
Copy link
Member

amotl commented Dec 3, 2020

Dear Josh,

I recognize that we are currently using the crate-python driver together with the BatchSizeAutomator in order to balance throughput saturation vs. overload situations.

https://github.com/crate/ts-data-generator/blob/9c64608d2cd9618e9d3b8d9be387c199b1fe4a4e/requirements.txt#L3

https://github.com/crate/ts-data-generator/blob/67330181e262d069f09e27bc64eb18951384b2f4/src/data_generator/data_generator.py#L60-L62

On this matter, I would also like to point out asyncpg's upcoming MagicStack/asyncpg#295, which improves executemany() to batch args for performance. It will probably be available with asyncpg>=0.22.0. Thanks to @mfussenegger for sharing this.

With kind regards,
Andreas.

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

1 participant