Home » Performance » MySQL » What is faster: Columns or Rows
What is faster: Columns or Rows [message #496] Thu, 21 December 2006 04:32 Go to previous message
willybnl2  is currently offline willybnl2
Messages: 6
Registered: December 2006
Junior Member
Let's say I have a table that contains text (still varchar) in a lot of languages (let's say 50 languages).

I would only use this to do selects the whole day.

And i always need to search for 1 key in 2 or 3 of this languages with 1 query and display this to the user.

What would be faster:

ID english lang2 lang3
1 text text text
(so I get both long vertical/horizontal table)

OR
ID lang text
1 english text
(so I get very long vertical table)


Normalization tells me the last, but using MySQL 4 i noticed the top one is faster for as much i can test... but what should be faster (maybe I'm testing wrongly Razz)

[Updated on: Thu, 21 December 2006 04:43]

Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:OR & AND?
Next Topic:MySQL Performance References
Goto Forum:

  


Current Time: Thu Jul 9 18:10:31 EDT 2009

Total time taken to generate the page: 0.02361 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 2.7.7.
Copyright ©2001-2007 FUD Forum Bulletin Board Software

MySQL is a trademark of Sun Microsystems.
InnoDB is a trademark of Oracle Corp.

Percona Performance Forums are a service of Percona, Inc.
Not affiliated with Sun Microsystems or Oracle Corp.