Skip to content

Conversation

@rullzer
Copy link
Member

@rullzer rullzer commented Dec 19, 2018

Before the joining and filtering removed unkown files. Resulting in
manual queries for all the files with no (unread) comments (the 99%).

Long story short. This will return a list of all the files in the parent
folder with their unread comment count (can be 0). But this makes sure
that the result is properly cached. In the dav handling.

Signed-off-by: Roeland Jago Douma [email protected]

Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

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

Change makes sense and code looks good!

👍 as discussed

@icewind1991
Copy link
Member

@rullzer can you cleanup your testing commits

@rullzer
Copy link
Member Author

rullzer commented Dec 20, 2018

@icewind1991 once phan is happy I will ;)

Before the joining and filtering removed unkown files. Resulting in
manual queries for all the files with no (unread) comments (the 99%).

Long story short. This will return a list of all the files in the parent
folder with their unread comment count (can be 0). But this makes sure
that the result is properly cached. In the dav handling.

Signed-off-by: Roeland Jago Douma <[email protected]>
@rullzer rullzer force-pushed the perf/fix_comments_in_folder_function branch from 1e6a9f3 to f394bf3 Compare December 20, 2018 19:43
@rullzer
Copy link
Member Author

rullzer commented Dec 20, 2018

Ok gave up. Just suppressed the warning

@rullzer
Copy link
Member Author

rullzer commented Dec 24, 2018

@icewind1991 work your review magic

@rullzer rullzer requested a review from MorrisJobke January 3, 2019 07:42
@MorrisJobke
Copy link
Member

/backport to stable15

@blizzz
Copy link
Member

blizzz commented Jan 3, 2019

According to EXPLAIN $query on mysql it eventually does not make a difference, identical output.

@blizzz blizzz merged commit aad3277 into master Jan 3, 2019
@blizzz blizzz deleted the perf/fix_comments_in_folder_function branch January 3, 2019 16:08
@backportbot-nextcloud
Copy link

backport to stable15 in #13335

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants