Actions
Bug #6987
closedHidden rows that don't exist cause performance drop
Description
When there's hidden rows for activity that doesn't exist it results in performance drop when outputting the hidden activity page.
Actions
Added by krileon about 7 years ago. Updated about 7 years ago.
Description
When there's hidden rows for activity that doesn't exist it results in performance drop when outputting the hidden activity page.
Best way to fix this seams to be to change the hidden query to a union usage to combine the 3 hidden type checks. Maybe a new API library should be implemented specifically for handling hidden activity, comments, etc..
Nope, no union needed. Simplify the join to only join the viewing users hidden rows as a LEFT join. Next add the filtering to the WHERE statement directly. Drops the query to 0.02s average.
Only fix for this was to indeed use a union of 3 queries to the 3 different hidden types.