have a innodb table with ~3G filesize (i use innodb_file_per_table = 1), just imported from dump and ~1.3G dump file. Have no idea how many recods exist here.
When i execute “select count(id) from $table” i see “27117291” (27,117,291 for readability).
When i execute “select count(id) from $table limit 100” i also see “27117291”
Why it is happening like this?
Is InnoDB REALLY better MyISAM?!
P.S. If i execute “select count(id) from $table where id=73010460;” i see “1”.
Returns one row with count in it. So your limit makes no difference.
(Reference)