-
Notifications
You must be signed in to change notification settings - Fork 32
🐛 Fix performance issue when listing files filtering on projects #8443
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
🐛 Fix performance issue when listing files filtering on projects #8443
Conversation
…iltering-on-projects
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.
Thanks
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.
Thank you 💯
Codecov Report✅ All modified and coverable lines are covered by tests.
Additional details and impacted files@@ Coverage Diff @@
## master #8443 +/- ##
===========================================
- Coverage 87.91% 67.47% -20.45%
===========================================
Files 1976 822 -1154
Lines 77221 37609 -39612
Branches 1342 175 -1167
===========================================
- Hits 67889 25375 -42514
- Misses 8928 12177 +3249
+ Partials 404 57 -347
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
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.
thx. Left some suggestions
services/storage/src/simcore_service_storage/modules/db/file_meta_data.py
Show resolved
Hide resolved
services/storage/src/simcore_service_storage/modules/db/file_meta_data.py
Show resolved
Hide resolved
|
@Mergifyio queue |
🟠 Waiting for conditions to match
|
|
|
force merged upon request |



What do these changes do?
UserOrProjectFilter.user_id == Nonethen the filtering onproject_ids is not taken into account. This PR fixes that.user_id==Nonewhich can only ever happen here: https://github.com/ITISFoundation/osparc-simcore/blob/master/services/storage/src/simcore_service_storage/simcore_s3_dsm.py#L363. And as can be seen from the logic there this will happen only whenproject_id is not None. In that case we need to to use the SQL index on theproject_idcolumn in the file_meta_data table to do the search.Related issue/s
How to test
Dev-ops