Conversation
Signed-off-by: Tomasz Janiszewski <tomek@redhat.com>
There was a problem hiding this comment.
Hey @janisz - I've reviewed your changes - here's some feedback:
Overall Comments:
- Consider adding a benchmark to measure the performance improvement of
GetByQueryFncompared toGetByQuery. - It would be helpful to add a comment explaining why
WalkByQueryisn't suitable for this use case.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
|
Images are ready for the commit at 89f5209. To use with deploy scripts, first |
There was a problem hiding this comment.
Hey @janisz - I've reviewed your changes - here's some feedback:
Overall Comments:
- Consider adding a comment to
GetByQueryFnexplaining when to prefer it overWalkByQuery. - It looks like you've added a
GetByQueryFntest to every store - consider creating a shared test function.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟡 Testing: 1 issue found
- 🟡 Complexity: 1 issue found
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #15010 +/- ##
==========================================
+ Coverage 48.95% 49.05% +0.10%
==========================================
Files 2549 2550 +1
Lines 187158 187373 +215
==========================================
+ Hits 91615 91920 +305
+ Misses 88302 88195 -107
- Partials 7241 7258 +17
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Co-authored-by: David Shrewsberry <99685630+dashrews78@users.noreply.github.com>
Signed-off-by: Tomasz Janiszewski <tomek@redhat.com>
Signed-off-by: Tomasz Janiszewski <tomek@redhat.com>
dashrews78
left a comment
There was a problem hiding this comment.
LGTM. Probably wise to get one of your teammates that were more involved in the cache store to approve before merging.
Performance test resultsSummarySources
|
|
@rhybrillou @mtodor PTAL |
rhybrillou
left a comment
There was a problem hiding this comment.
Please check my comments, I'll do another pass once these are addressed.
|
@rhybrillou fixed. We need some better way to get prealloc for pagination, so far I used batchAfter |
|
/retest |
Description
The
GetByQueryfunction retrieves a slice of objects from the database, which we often process item-by-item afterward. To improve performance, this update introduces support for a callback that is invoked during row iteration. This approach is similar toWalkByQuery, but it operates without using a database cursor.Refs:
Testing
Automated testing
How I validated my change
CI