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

[jdbc.read] Remove value caching from JDBC reading machinery #183

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

alexander-yakushev
Copy link
Contributor

As discussed in #179.

Copy link

codecov bot commented Oct 5, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 4 lines in your changes missing coverage. Please review.

Project coverage is 83.18%. Comparing base (86929ea) to head (3cf911b).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
src/toucan2/jdbc/read.clj 33.33% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #183      +/-   ##
==========================================
- Coverage   83.20%   83.18%   -0.03%     
==========================================
  Files          37       37              
  Lines        2524     2503      -21     
  Branches      214      213       -1     
==========================================
- Hits         2100     2082      -18     
+ Misses        210      208       -2     
+ Partials      214      213       -1     

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

@alexander-yakushev
Copy link
Contributor Author

Weird that code coverage says some lines aren't tested. Any test that triggers fetching values from a row should cover them, right?

@camsaul
Copy link
Owner

camsaul commented Oct 7, 2024

It would be really nice to see some Criterium benchmarks around these changes, like "fetching a million rows with select-reducible used to take a median 10ms but now it takes 9ms" or something like that. Otherwise I'm just approving a PR to delete caching code without a clear sense of how it affects performance

Copy link
Owner

@camsaul camsaul left a comment

Choose a reason for hiding this comment

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

Ok so after thinking about this a bit you are totally right in that caching stuff at the thunk layer is pointless because TransientRow has its own caching logic as well. So we can go ahead and merge this in

@camsaul camsaul merged commit 8ad9279 into camsaul:master Oct 7, 2024
9 of 10 checks passed
@alexander-yakushev alexander-yakushev deleted the no-caching branch October 8, 2024 07:21
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