If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > To split the table or not ?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-13-06, 07:35
anjanesh anjanesh is offline
Registered User
 
Join Date: Feb 2005
Location: Mumbai, India
Posts: 161
To split the table or not ?

I got a form to make which has many fields. The first half are basic info like Name, Address, City etc etc which are varchar or int etc.
The latter half consists of questions for which the answers are of TEXT datatype. I currently have this in one single table.

Would it make any difference if I have the Answers part in a separate table ? Would it do any good in terms of performance ?

Thanks
__________________
MySQL 5.1
Reply With Quote
  #2 (permalink)  
Old 08-13-06, 07:50
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,534
not really
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 08-13-06, 08:13
anjanesh anjanesh is offline
Registered User
 
Join Date: Feb 2005
Location: Mumbai, India
Posts: 161
On my website, I have a search form - basic and advanced. Basic doesnt search the Answers (TEXT) fields while Advanced does. So for the basic search, wouldnt it the query be faster if it searches only the 1st table, rather than a table containing some 20 TEXT fields too which are searched only in the Advanced Search ?
__________________
MySQL 5.1
Reply With Quote
  #4 (permalink)  
Old 08-13-06, 08:19
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,534
the TEXT fields aren't stored on the same row anyway, so no
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #5 (permalink)  
Old 09-13-06, 05:20
pakcik_kantin pakcik_kantin is offline
Registered User
 
Join Date: Jul 2004
Posts: 62
It based on you db design
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 On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On