MySQL Forums
Forum List  »  Performance

Re: Selects are slow when blob field?
Posted by: Harrison Fisk
Date: November 23, 2004 05:29PM

Hi,

A couple of things to note.

First, you might want to consider a combined index on (recordid, tablename), rather than two seperate ones. This will allow MySQL to find the rows requested faster.

Second, you never mentioned the storage engine that you are using. With MyISAM, it will always read the entire row (including the blob in this case) even if you aren't selecting it. Moving the blob to a separate table and doing a join when it is actually required would be highly recommended for performance.

Harrison Fisk, Trainer and Consultant
MySQL AB, www.mysql.com

Options: ReplyQuote


Subject
Views
Written By
Posted
5770
November 23, 2004 09:37AM
4174
November 23, 2004 09:51AM
3540
November 23, 2004 11:17AM
Re: Selects are slow when blob field?
3676
November 23, 2004 05:29PM
3690
November 24, 2004 08:20AM
3833
November 24, 2004 05:05PM
3472
November 26, 2004 10:00AM
7934
November 26, 2004 10:41AM


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.