-
-
Notifications
You must be signed in to change notification settings - Fork 427
Closed
Labels
bugUndesired behaviourUndesired behaviourperformancePerformance related affects big sitesPerformance related affects big sitesresolvedA fixed issueA fixed issue
Milestone
Description
When opening up Presets -> CDEF I'm also seeing very long query times:
# Time: 191024 20:26:41
# User@Host: apache[apache] @ localhost [] Id: 288635648
# Query_time: 5.188121 Lock_time: 0.000384 Rows_sent: 1 Rows_examined: 292
SET timestamp=1571970401;
SELECT COUNT(`rows`) FROM ( SELECT cd.id AS `rows`, SUM(CASE WHEN local_graph_id>0 THEN 1 ELSE 0 END) AS graphs FROM cdef AS cd LEFT JOIN graph_templates_item AS gti ON gti.cdef_id=cd.id WHERE `system`=0 GROUP BY cd.id ) AS rs;
# Time: 191024 20:26:48
# User@Host: apache[apache] @ localhost [] Id: 288635648
# Query_time: 6.595178 Lock_time: 0.000324 Rows_sent: 50 Rows_examined: 52821
SET timestamp=1571970408;
SELECT rs.*, SUM(CASE WHEN local_graph_id=0 THEN 1 ELSE 0 END) AS templates, SUM(CASE WHEN local_graph_id>0 THEN 1 ELSE 0 END) AS graphs FROM ( SELECT cd.*, gti.local_graph_id FROM cdef AS cd LEFT JOIN graph_templates_item AS gti ON gti.cdef_id=cd.id WHERE `system`=0 GROUP BY cd.id, gti.graph_template_id, gti.local_graph_id ) AS rs WHERE `system`=0 GROUP BY rs.id ORDER BY `name` ASC LIMIT 0,50;
Metadata
Metadata
Assignees
Labels
bugUndesired behaviourUndesired behaviourperformancePerformance related affects big sitesPerformance related affects big sitesresolvedA fixed issueA fixed issue