Featured post
php - mysql lots of text columns or integer columns and a new table? -
i'm new mysql , have choice regarding mysql database structure new database. can have:
table1:(id,text1,text2,text3,text4,up text7)
or
table1:(id,int1,int2,int3,...up int7) int values link table 2 unique index
table2:(id2,text)
so basically, should put text in columns in single table or saparate , store index values in 1 table , text data in second table... queries given id code, return strings text 1 text 7. table large, ~1 million id's (meaning table 2 if method 2 used have ~7 million entries)
which method faster in opinion?
edit1: each text 250 letter characters in length. edit2: clarify, given id , query table getting 7 text items id. query done on tables , information ever required. need know faster use. if neither, please offer better way!
won't make speed difference if you're not querying based on text. keep simple , use 1 table. if have query text, you're going want change it.
- Get link
- X
- Other Apps
Comments
Post a Comment