You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Loading the dashboard is taking 20-30 seconds for us when processed_messages becomes a few million.
We currently have 6,552,864 rows in that table, so not really that big.
I know this table can be purged, but 6 million rows doesn't seem like enough to warrant that.
query 1 that takes up to 20 seconds:
SELECT DISTINCT
id_15,
MIN(sclr_16) AS dctrn_minrownum
FROM
(
SELECTp0_.run_idAS run_id_0,
p0_.attemptAS attempt_1,
p0_.message_typeAS message_type_2,
p0_.descriptionAS description_3,
p0_.dispatched_atAS dispatched_at_4,
p0_.received_atAS received_at_5,
p0_.finished_atAS finished_at_6,
p0_.wait_timeAS wait_time_7,
p0_.handle_timeAS handle_time_8,
p0_.memory_usageAS memory_usage_9,
p0_.transportAS transport_10,
p0_.tagsAS tags_11,
p0_.failure_typeAS failure_type_12,
p0_.failure_messageAS failure_message_13,
p0_.resultsAS results_14,
p0_.idAS id_15,
ROW_NUMBER() OVER (
ORDER BYp0_.finished_atDESC
) AS sclr_16
FROM
processed_messages p0_
) dctrn_result
GROUP BY
id_15
ORDER BY
dctrn_minrownum ASCLIMIT15;
Second query which takes 10 seconds to load the statistics page:
SELECTcount(DISTINCT p0_.id) AS sclr_0
FROM
processed_messages p0_
GROUP BYp0_.message_type;
I've not looked into improving these yet. just raising for visibility.
Thanks,
Ben
The text was updated successfully, but these errors were encountered:
Hi,
Loading the dashboard is taking 20-30 seconds for us when
processed_messages
becomes a few million.We currently have 6,552,864 rows in that table, so not really that big.
I know this table can be purged, but 6 million rows doesn't seem like enough to warrant that.
query 1 that takes up to 20 seconds:
Second query which takes 10 seconds to load the statistics page:
I've not looked into improving these yet. just raising for visibility.
Thanks,
Ben
The text was updated successfully, but these errors were encountered: