MySQL Forums
Forum List  »  Performance

Re: Query time difference
Posted by: Ofer Bechar
Date: April 27, 2015 11:29PM

Thanks a lot Rick!

The partitioning is for couple of things:

1. Almost every select from the table will be from the same partition. A cross partitions select will be very rare.
2. For future archiving purpose.

The explain plan did change when it became slow - when it was slow it used the complex index. I removed it and it is now fast every time. BTW - before the partitioning, this index was used and the query was fast (without the index it was slow, not THAT slow, but slow - 10-15 seconds).

I will try your suggestions to try and make it even better.

The query was generated by Hibernate.

Thanks again!

Options: ReplyQuote


Subject
Views
Written By
Posted
1723
April 26, 2015 07:28AM
648
April 27, 2015 02:39PM
Re: Query time difference
686
April 27, 2015 11:29PM
658
April 29, 2015 05:50PM


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.