General SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesGeneral SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old June 1st, 2003, 08:56 PM
DeadManWalking DeadManWalking is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Shimonoseki
Posts: 12 DeadManWalking User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to DeadManWalking
Few rows but many columns. Bad idea ?

Hi,
I know that MySQL can handle few millions of rows without any problem, but lets say if I have like 300~400 or even more columns and only 2~3 rows, will it effect the performance?
thanks in advance

Reply With Quote
  #2  
Old June 1st, 2003, 11:42 PM
iahmed iahmed is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: USA
Posts: 171 iahmed User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 42 m 58 sec
Reputation Power: 6
So far I remember MySQL 3.23.X may have a maximum of 256 columns (regardless of data type) while Orcale 8 can support a maximum of 1000 columns.
I am sure about Oracle 8, but not very sure about MySQL.

Reply With Quote
  #3  
Old June 2nd, 2003, 01:10 AM
DeadManWalking DeadManWalking is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Shimonoseki
Posts: 12 DeadManWalking User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to DeadManWalking
Thanks for replies
afaik, in 3.2.x versions you can have over 2000 columns in ISAM types and over 3000 columns in MyISAM types...

I will never reach that amount, but I just want to know that if someone has tried to use few hundred columns in tables, and the performance...

Reply With Quote
  #4  
Old June 2nd, 2003, 01:43 AM
laidbak laidbak is offline
you know how we do
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jun 2002
Location: In Tha IE -- San Bernardino COUNTY
Posts: 788 laidbak User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 4 m 2 sec
Reputation Power: 7
Send a message via ICQ to laidbak Send a message via AIM to laidbak Send a message via MSN to laidbak Send a message via Yahoo to laidbak
I've had databases with over 300 columns in dbase format with thousands of records... no problem.

I'm quite sure mysql can handle at least that many.
__________________
__________________________________________________ _
Wil Moore III, MCP | Integrations Specialist | Senior Consultant
Are You Listed...? | DigitallySmooth Inc.

Reply With Quote
  #5  
Old June 2nd, 2003, 02:18 AM
danjel danjel is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 7 danjel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
just curious, with 2-3 rows
what kind of program are you developing?

Reply With Quote
  #6  
Old June 2nd, 2003, 03:41 AM
DeadManWalking DeadManWalking is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Shimonoseki
Posts: 12 DeadManWalking User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to DeadManWalking
Table is something like

Code:
number1 | number2 | number3 | lang|
-----------------------------------------------
one         | two         | three       | en   |
------------------------------------------------
bir         | iki         | ьз         | tr   |
------------------------------------------------
一     |二       |三      |jp    |
-------------------------------------------------
2nd row in Turkish and 3rd row in Japanese 

List of words in Turkish Japanese and English. Maybe will be added more in the future. The problem is I can insert different character codes in same table, but not in the same row (at least cannot insert single-byte and double-byte chars together in the same row)
So I cannot do this:

Code:
enWord | jpWord | trWord
----------------------------------
one      | ichi     |bir
two      | ni       |uc


etc...

Reply With Quote
  #7  
Old June 2nd, 2003, 04:08 AM
laidbak laidbak is offline
you know how we do
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jun 2002
Location: In Tha IE -- San Bernardino COUNTY
Posts: 788 laidbak User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 4 m 2 sec
Reputation Power: 7
Send a message via ICQ to laidbak Send a message via AIM to laidbak Send a message via MSN to laidbak Send a message via Yahoo to laidbak
Why not try it like this:

======================
ID WORD LANG
1 one en
2 two en
3 ichi jp
4 ni jp
5 bir tk
6 uc tk
======================

or even better

======================
english translation lang
one ichi jp
two ni jp
one bir tk
two uc tk
======================

then you would just need one more table
to do language code lookups (eg. jp = Japanese, tk = Turkish)

Reply With Quote
  #8  
Old June 2nd, 2003, 09:25 AM
DeadManWalking DeadManWalking is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Shimonoseki
Posts: 12 DeadManWalking User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to DeadManWalking
That is the reason why I am asking actually. With current code, I don't need multiple tables, loops etc. I can access whole words of one language with single recordset line (select * from blabla where lang = "tr"). If big quantity of columns does not effect performance, I will continue; if not I will choose another way. Like muliple tables, queries etc.

Anyways, I thought that if MySQL can handle few thousands for columns, few hundred won't be a problem I guess.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesGeneral SQL Development > Few rows but many columns. Bad idea ?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway