-
Notifications
You must be signed in to change notification settings - Fork 324
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
improve dataset facets access #2407
Conversation
Signed-off-by: Pawel Leszczynski <leszczynski.pawel@gmail.com>
c4550c0
to
1dd07a1
Compare
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 |
@pawel-big-lebowski: I'm wondering if we can also have stats for the query improvements along with the PR? |
+1 - explain plans for before/after are also super helpful |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice optimization to avoid JOIN
s and a bit of cleanup! Great work, @pawel-big-lebowski 💯 🥇
Signed-off-by: Pawel Leszczynski leszczynski.pawel@gmail.com
Problem
The newly introduced
dataset_facets
table containsdataset_version_uuid
field which allows a better way to access dataset facets (without chained join dataset -> run -> facet).Closes: #2406
Solution
Rewrite SQL queries in
DatasetDao
andDatasetVersionDao
.Checklist
CHANGELOG.md
with details about your change under the "Unreleased" section (if relevant, depending on the change, this may not be necessary).sql
database schema migration according to Flyway's naming convention (if relevant)