-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Rewrite getNumberOfUnreadCommentsForFolder query #13161
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
Conversation
ChristophWurst
left a comment
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.
Change makes sense and code looks good!
👍 as discussed
|
@rullzer can you cleanup your testing commits |
|
@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]>
1e6a9f3 to
f394bf3
Compare
|
Ok gave up. Just suppressed the warning |
|
@icewind1991 work your review magic |
|
/backport to stable15 |
|
According to EXPLAIN $query on mysql it eventually does not make a difference, identical output. |
|
backport to stable15 in #13335 |
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]