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
7249
November 12, 2010 03:40AM
2619
November 13, 2010 10:34AM
2525
November 13, 2010 12:14PM
2076
November 13, 2010 08:13PM
2015
November 14, 2010 01:01PM
1799
November 14, 2010 07:03PM
2204
November 15, 2010 02:14PM
1734
November 16, 2010 12:51AM
2456
November 16, 2010 03:03PM
1747
November 16, 2010 08:35PM
2278
November 17, 2010 01:13PM
Re: Table as fifo
1884
November 18, 2010 12:01AM
2076
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.