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

Significant Performance Degradation in Version 6.0.1 Compared to 5.5.1 #1253

Open
jbsilva opened this issue Aug 23, 2024 · 0 comments
Open

Comments

@jbsilva
Copy link

jbsilva commented Aug 23, 2024

We recently upgraded PynamoDB from version 5.5.1 to 6.0.1 and observed a significant performance degradation during our internal benchmarks.

The benchmarks consisted of a series of query and scan operations on real DynamoDB tables, which closely reflect our production usage. The performance hit was consistent across multiple runs, with some operations taking nearly twice as long in version 6.0.1.

Here are the benchmark results:

PynamoDB 5.5.1: 8.09s, 4.11s, 3.63s, 3.96s
PynamoDB 6.0.1: 11.91s, 8.58s, 7.54s, 7.95s

The only difference between these runs was the PynamoDB version and its dependencies.
We noticed that in #1079, you anticipated a performance hit of around 25%. However, in our case, the impact is significantly higher.

For now, we have downgraded to version 5.5.1 to avoid the performance issues. However, this is not a viable long-term solution, as this version is no longer receiving bug fixes or being tested against new versions of botocore.

Environment:

Python version: 3.12
Dependency management: Poetry

Please let us know if there is any additional information we can provide to help diagnose this issue or any workarounds.

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