Two WHERE conditions has been established btree index,
A query to find out close to one hundred thousand data,
2 be able to find out a data query, need only this one can actually,
But the amount of time is too long, for bosses to help optimize the query time,
CodePudding user response:
Spent 3 seconds, bosses, help to optimize the
CodePudding user response:
CodePudding user response:
If the same data_point_id only a corresponding color, with the top 1 take a record,
If not sure try adding data_pont_id index, query to add an order by null and have a look
CodePudding user response: