MySQL Forums
Forum List  »  General

Re: count (*) performs very slow in mysql 8
Posted by: robert hofer
Date: March 24, 2021 09:23AM

I posted to fast: i did a reeimport of the database, added the index and this time it did not help: still 15 secodnds to count the records.
i discovered another strange behaviour: select count(id) takes 15 seconds but select count(id) where id>0 takes 0.1 sec.

Options: ReplyQuote


Subject
Written By
Posted
Re: count (*) performs very slow in mysql 8
March 24, 2021 09:23AM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.