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
7360
November 12, 2010 03:40AM
2666
November 13, 2010 10:34AM
2644
November 13, 2010 12:14PM
2200
November 13, 2010 08:13PM
2051
November 14, 2010 01:01PM
1840
November 14, 2010 07:03PM
2296
November 15, 2010 02:14PM
1851
November 16, 2010 12:51AM
2568
November 16, 2010 03:03PM
1783
November 16, 2010 08:35PM
2363
November 17, 2010 01:13PM
Re: Table as fifo
1924
November 18, 2010 12:01AM
2152
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.