Whats the most efficient MySQL column types for this data?

Posted by AlabamaKush on Stack Overflow See other posts from Stack Overflow or by AlabamaKush
Published on 2010-05-22T18:42:42Z Indexed on 2010/05/22 18:50 UTC
Read the original article Hit count: 305

Filed under:
|
|
|

I have several tables with some pretty standard data in each. Can somebody help me optimize them by telling me the best column types for this data. Whats beside them is what I have currently.

Number (max length 7) --> MEDIUMINT(8) Unsigned
Text (max length 30) --> VARCHAR(30)
Text (max length 200) --> VARCHAR(200)
Number (max length 4) --> SMALLINT(5) Unsigned
Number (either 0 or 1) --> TINYINT(1) Unsigned
Text (max length 500) --> TEXT

Any suggestions? I'm just guessing with this so I know some of them are wrong...

© Stack Overflow or respective owner

Related posts about mysql

Related posts about columns