MySQL :: MySQL 8.4 Reference Manual :: 10.6.1 Optimizing MyISAM Queries (original) (raw)

10.6.1 Optimizing MyISAM Queries

Some general tips for speeding up queries onMyISAM tables:

UPDATE tbl_name SET count_col=count_col+1 WHERE key_col=constant;  

This is very important when you use MySQL storage engines such as MyISAM that has only table-level locking (multiple readers with single writers). This also gives better performance with most database systems, because the row locking manager in this case has less to do.