-
Notifications
You must be signed in to change notification settings - Fork 4
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
[PB-845]: feat/calculate-folder-size #259
Conversation
Hey @edisonjpadilla, we can not list "all" the folders/files in a given folder. That does not scale well, as with more folders/files, the longer the query. I do not see any abort option in case the time to make the |
And please, provide a description of the PR + the testing coverage for the new code >80% |
I'm just getting the folders uuids and sum file sizes by folders uuids, I thought to do the sum in the recursive query, but I didn't because of the readability of the code and the raw query. TO DO:
|
f334b38
to
0babe41
Compare
0babe41
to
ba463ba
Compare
ba463ba
to
0597f28
Compare
migrations/20240112041245_create-calculate-folder-size-function.js
Outdated
Show resolved
Hide resolved
0597f28
to
e3a5a03
Compare
e3a5a03
to
c91ca60
Compare
c91ca60
to
ef08780
Compare
1f06f4f
to
9775e53
Compare
9775e53
to
9ca8038
Compare
9ca8038
to
d73c9f0
Compare
@sg-gs Why should we test the sequelize library? it has already been tested by the owners, we just should mocking the response and send the same response as is at the sequelize doc and test our code by that. |
d73c9f0
to
9dc4615
Compare
9dc4615
to
0905076
Compare
|
[PB-845]: feat/calculate-folder-size
I'm using a recursive raw query to get each file of each folder belonging to folder father.
the properties that I used to filter in the query all have indexes;
file.folder_uuid
,folder.uuid
,folder.parent_uuid,
so improving the performance for each request.