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
6821
November 12, 2010 03:40AM
2375
November 13, 2010 10:34AM
2366
November 13, 2010 12:14PM
1913
November 13, 2010 08:13PM
1817
November 14, 2010 01:01PM
1629
November 14, 2010 07:03PM
1957
November 15, 2010 02:14PM
1609
November 16, 2010 12:51AM
2242
November 16, 2010 03:03PM
1597
November 16, 2010 08:35PM
2074
November 17, 2010 01:13PM
Re: Table as fifo
1702
November 18, 2010 12:01AM
1930
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.