MySQL Forums
Forum List  »  Performance

Re: INNODB large database performance
Posted by: Rick James
Date: February 23, 2013 12:04AM

* How many rows are generated by the subquery? (If a lot, then need to focus on it.)

* (minor) INT -> SMALLINT UNSIGNED -- In many cases you don't need a 4-byte, +/- 2 billion range value, you could use a 2-byte, 0..64K value.

* Thanks for the COMMENTs!

* NOT NULL -- good. (Some fields are NULLable; perhaps an oversight?)

* Need to see the current version of the SELECT. (Did you switch to IN? Which LEFTs are gone?)

* Need to see the new EXPLAIN. Please put [ code ] and [ /code ] (without spaces) around it.

* There are only hundreds or thousands of rows in each table, correct?

* In the GROUP BY, use
LEFT(d.EntryDate, 16)
instead of
DATE_FORMAT(`d`.`EntryDate`, '%M %e, %Y %k:%i:00')

Options: ReplyQuote


Subject
Views
Written By
Posted
3538
February 16, 2013 03:11AM
1186
February 20, 2013 05:31PM
1040
February 21, 2013 02:51AM
1269
February 21, 2013 11:12PM
1320
February 22, 2013 03:38AM
Re: INNODB large database performance
1021
February 23, 2013 12:04AM
976
February 23, 2013 03:28PM
920
February 24, 2013 02:10PM
916
February 24, 2013 03:02PM
1046
February 25, 2013 10:39PM


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.