Re: Count(*) query is slower on partitioned table
Thanks for your reply.
In my real case the partitioning is on a datetime column - the actual idea is to use partitions to simplify deletions and reclamation of storage space. So, we are not after a performance improvement, but such a degradation is very worrying.
In the meantime, another thing I have noted is that as more columns are added (alter) to the partitioned table, then this COUNT query takes longer and longer. (this may be one of the reason why my actual query takes much longer). Once again, this does not make sense to me because this query should be "using index" - ie: should not need to access the main table, right? So my "suspicion" is that something is wrong in the Mysql/mariadb part that handles partitioning such that InnoDb still has to reference the main table. I will try to test with most recent version of Mysql 5.7 to ensure it is not related to index condition pushdown (even though I do not have a filtering condition here) and get back to you.
--
Darren Demicoli
Devops Engineer
http://www.xcaliber.com
Subject
Views
Written By
Posted
7944
December 03, 2016 11:53AM
2420
December 10, 2016 12:30AM
Re: Count(*) query is slower on partitioned table
2231
December 10, 2016 06:48AM
2056
December 12, 2016 01:56PM
2165
December 13, 2016 02:50PM
1950
December 21, 2016 12:35AM
Sorry, you can't reply to this topic. It has been closed.
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.