sesdashboard icon indicating copy to clipboard operation
sesdashboard copied to clipboard

Indexes missing

Open jgimenez opened this issue 1 year ago • 1 comments

After some time of usage, the dashboard becomes very very slow, up to the point of queries timing out.

I found these two indices help:

ALTER TABLE email_event ADD INDEX timestamp (timestamp);
ALTER TABLE email ADD INDEX project_id_timestamp (project_id,timestamp);

jgimenez avatar Feb 08 '24 11:02 jgimenez

Also consider

ALTER TABLE email ADD INDEX message_id (message_id);

matt-t-d avatar Mar 04 '24 12:03 matt-t-d