The table type of InnoDB. the selectcount (*) where condition is followed by 12 query values. If no index is added, it takes about 5 seconds to query 0.5 million data records, is it the best solution to create an index column in this case? by the way, is the consumption of an index column equal to that of an index, for example, the impact on growth... the table type of InnoDB. The select count (*) where condition is followed by 12 query values. If no index is added, it takes about 5 seconds to query 0.5 million data records, is it the best solution to create an index column in this case? by the way, is the consumption of an index column equal to that of an index, such as the efficiency of adding, deleting, and modifying indexes and the size of space. Thank you.
Reply content:
The table type of InnoDB. The select count (*) where condition is followed by 12 query values. If no index is added, it takes about 5 seconds to query 0.5 million data records, is it the best solution to create an index column in this case? by the way, is the consumption of an index column equal to that of an index, such as the efficiency of adding, deleting, and modifying indexes and the size of space. Thank you.
0.5 million 5 seconds is too slow .. You need to create a joint index based on your query conditions.
Paste the query statement.