improve dataset facets access#2407
Merged
Merged
Conversation
Signed-off-by: Pawel Leszczynski <leszczynski.pawel@gmail.com>
c4550c0 to
1dd07a1
Compare
7 tasks
Codecov Report
@@ Coverage Diff @@
## main #2407 +/- ##
============================================
+ Coverage 67.15% 77.11% +9.95%
- Complexity 231 1234 +1003
============================================
Files 40 228 +188
Lines 947 5572 +4625
Branches 101 447 +346
============================================
+ Hits 636 4297 +3661
- Misses 163 775 +612
- Partials 148 500 +352
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Member
|
@pawel-big-lebowski: I'm wondering if we can also have stats for the query improvements along with the PR? |
Collaborator
+1 - explain plans for before/after are also super helpful |
wslulciuc
approved these changes
Feb 22, 2023
wslulciuc
left a comment
Member
There was a problem hiding this comment.
Nice optimization to avoid JOINs and a bit of cleanup! Great work, @pawel-big-lebowski 💯 🥇
jonathanpmoraes
referenced
this pull request
in nubank/NuMarquez
Feb 6, 2025
Signed-off-by: Pawel Leszczynski <leszczynski.pawel@gmail.com> Co-authored-by: Willy Lulciuc <willy@datakin.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Pawel Leszczynski leszczynski.pawel@gmail.com
Problem
The newly introduced
dataset_facetstable containsdataset_version_uuidfield which allows a better way to access dataset facets (without chained join dataset -> run -> facet).Closes: #2406
Solution
Rewrite SQL queries in
DatasetDaoandDatasetVersionDao.Checklist
CHANGELOG.mdwith details about your change under the "Unreleased" section (if relevant, depending on the change, this may not be necessary).sqldatabase schema migration according to Flyway's naming convention (if relevant)