Split of table or not?

This is a discussion on Split of table or not? within the MySQL Database forums, part of the Database Forums category; According to MySQL docs, if a table contains text or blob field, then table join using temp table must be ...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-08-2008
Roy M
 
Posts: n/a
Default Split of table or not?

According to MySQL docs, if a table contains text or blob field, then
table join using temp table must be using disk.

So if I have a rather big table contains text fields, should always
split the table so all text fields is on another table, so that my new
"big table" with text fields removed can join with other tables
without using too disk temp table?

Thanks.
Reply With Quote
  #2 (permalink)  
Old 07-08-2008
Jerry Stuckle
 
Posts: n/a
Default Re: Split of table or not?

Roy M wrote:
> According to MySQL docs, if a table contains text or blob field, then
> table join using temp table must be using disk.
>
> So if I have a rather big table contains text fields, should always
> split the table so all text fields is on another table, so that my new
> "big table" with text fields removed can join with other tables
> without using too disk temp table?
>
> Thanks.
>


If you aren't using the text or blob column in most of your queries,
then yes.

I store a lot of images in the database. When doing it, I always have a
separate table for the blob column because there are many queries where
I just get information on the item but not the image. It helps keep
system utilization down.

But if you're almost always using the text/blob column anyway, putting
it in a separate table won't help much (and may slow things down slightly).


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:45 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0