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

Reduce number of select for updates #2256

Merged
merged 5 commits into from
Jun 19, 2024
Merged

Reduce number of select for updates #2256

merged 5 commits into from
Jun 19, 2024

Conversation

lferran
Copy link
Contributor

@lferran lferran commented Jun 19, 2024

Description

We were using read/write transactions on places where it is not needed, thus causing a lot of contention on keys that are "get" often.

How was this PR tested?

Existing tests should cover

@lferran lferran requested a review from a team June 19, 2024 08:36
Copy link

codecov bot commented Jun 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.32%. Comparing base (fcfd567) to head (8d87d3d).
Report is 18 commits behind head on main.

Current head 8d87d3d differs from pull request most recent head 488dca5

Please upload reports for the commit 488dca5 to get more accurate results.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2256      +/-   ##
==========================================
+ Coverage   76.65%   77.32%   +0.67%     
==========================================
  Files         103      106       +3     
  Lines        6724     6844     +120     
==========================================
+ Hits         5154     5292     +138     
+ Misses       1570     1552      -18     
Flag Coverage Δ
utils 81.72% <ø> (+0.33%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Benchmark

Benchmark suite Current: 488dca5 Previous: 0d03d9f Ratio
tests/search/unit/search/test_fetch.py::test_highligh_error 2289.783218994411 iter/sec (stddev: 0.000009044171956253212) 2841.0684406726436 iter/sec (stddev: 0.000004954958228416619) 1.24

This comment was automatically generated by workflow using github-action-benchmark.

@lferran lferran merged commit 3fd2b7f into main Jun 19, 2024
47 checks passed
@lferran lferran deleted the remove-select-for-update branch June 19, 2024 09:25
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

Successfully merging this pull request may close these issues.

2 participants