MySQL Forums
Forum List  »  MyISAM

Re: Table as fifo
Posted by: Rick James
Date: November 18, 2010 12:01AM

This cannot use the index: DATEDIFF('[timeisnowinstring]',C4) > 30
This can: C4<'[timeisbeforeonmonthstring]'

This costs a lot; get rid of it: C4!=0 AND
Not because it is hard to compute, but because it distracts from a simple scan of
INDEX(C4).

This is wh we use ramdisk -- Wrong! The CPU has to copy from "ram" to/from "ramdisk". With a decent sized key_buffer, you avoid these copies.

Yes, I should have said C2, not C4:
`C2` int(11) DEFAULT NULL COMMENT '',
If it can never be NULL, then say
`C2` int(11) DEFAULT NOT NULL COMMENT '',

Options: ReplyQuote


Subject
Views
Written By
Posted
7102
November 12, 2010 03:40AM
2553
November 13, 2010 10:34AM
2462
November 13, 2010 12:14PM
2011
November 13, 2010 08:13PM
1962
November 14, 2010 01:01PM
1741
November 14, 2010 07:03PM
2132
November 15, 2010 02:14PM
1690
November 16, 2010 12:51AM
2397
November 16, 2010 03:03PM
1691
November 16, 2010 08:35PM
2197
November 17, 2010 01:13PM
Re: Table as fifo
1806
November 18, 2010 12:01AM
2024
November 18, 2010 12:25PM


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.