Create an index for the 'state' field of the 'synolia_scheduled_commands' table
I'm getting slow queries report from Mysql because of the lack of an index for the "state" field.
The query that is reported is the following:
SELECT t0.id AS id_1, t0.name AS name_2, t0.command AS command_3, t0.arguments AS arguments_4, t0.executed_at AS executed_at_5, t0.last_return_code AS last_return_code_6, t0.log_file AS log_file_7, t0.command_end_time AS command_end_time_8, t0.created_at AS created_at_9, t0.state AS state_10, t0.timeout AS timeout_11, t0.idle_timeout AS idle_timeout_12, t0.owner_id AS owner_id_13 FROM synolia_scheduled_commands t0 WHERE t0.state = 'waiting';
Thank you!
Hello @developerlover ,
Thank you for reporting this issue. We'll look that asap. If you don't need huge history you can use the purge history command to easy clean up history.
Regards