usando EXPLAIN SELECT ... ho notato che, nel caso la clausola WHERE sia fatta su chiavi, se si usa count(*) si ottiene un "type" di tipo "range" mentre usando count(campo_non_chiave) il "type" è "all" ovvero meno performante.
Sarà vero ?!?
![]()
usando EXPLAIN SELECT ... ho notato che, nel caso la clausola WHERE sia fatta su chiavi, se si usa count(*) si ottiene un "type" di tipo "range" mentre usando count(campo_non_chiave) il "type" è "all" ovvero meno performante.
Sarà vero ?!?
![]()