Open prd-hai-huynh opened 3 years ago
Could you please tell me if we can have any indexes in the table django_q_schedule?
I don't believe so, other than an index on the primary key. Here's what SHOW INDEX shows on my system:
mysql> SHOW INDEX FROM django_q_schedule;
+-------------------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| Table | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment |
+-------------------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| django_q_schedule | 0 | PRIMARY | 1 | id | A | 0 | NULL | NULL | | BTREE | | |
+-------------------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
1 row in set (0.00 sec)
The number of records of our database is increasing rapidly and the query causes bad performance to RDS:
I'm surprised that you have so many entries in the schedule table. How are you using the schedule feature?
I'm surprised that you have so many entries in the schedule table. How are you using the schedule feature?
@nickodell,
django_q_schedule
.
Hi,
We're getting bad performance when the below query is executed every 30s. Could you please tell me if we can have any indexes in the table
django_q_schedule
? (Because the query is executed insidedjango-q
, so we have no choice but to make indexes.)Query: https://github.com/Koed00/django-q/blob/master/django_q/cluster.py#L589-L594
Raw query:
The number of records of our database is increasing rapidly and the query causes bad performance to RDS:
Our
django-q
configuration:django-q version:
Thank you very much,