There is a table (mysql) with a field binary
. With the growth of the database (1Gb), SQL queries with count
started to take a long time to execute. How to solve this problem?
UPD:
This table has a binary field.
select count(*) cou from docs where status_id=1 and language_id=1 and user_id=10