MySQL Forums
Forum List  »  General

Re: Multiple complex queries
Posted by: Rick James
Date: December 07, 2009 10:37AM

Use TIMESTAMP instead of DATETIME. TIMESTAMP's internal format is UTC; values are converted as you insert/select by adjusting according to the declared timezone. That can be either declared in MySQL or inherited from the system.

Another benefit of TIMESTAMP over DATETIME -- 4 bytes instead of 8.

So -- you did get a 60x speedup with the summary table with 1/60 as many rows? (The 60x was theoretical.)

Options: ReplyQuote


Subject
Written By
Posted
December 03, 2009 05:14AM
December 03, 2009 09:02AM
December 04, 2009 10:50PM
December 07, 2009 04:16AM
Re: Multiple complex queries
December 07, 2009 10:37AM
December 07, 2009 12:27PM


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.