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
7521
November 12, 2010 03:40AM
2742
November 13, 2010 10:34AM
2719
November 13, 2010 12:14PM
2284
November 13, 2010 08:13PM
2093
November 14, 2010 01:01PM
1873
November 14, 2010 07:03PM
2345
November 15, 2010 02:14PM
1908
November 16, 2010 12:51AM
2637
November 16, 2010 03:03PM
1818
November 16, 2010 08:35PM
2452
November 17, 2010 01:13PM
Re: Table as fifo
1960
November 18, 2010 12:01AM
2205
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.