mysql - Should I split a table which has big size data? -



mysql - Should I split a table which has big size data? -

i'm using mysql. need save contents of xml file database. size of file less 10k.

the table looks this:

articles ----------- id date author ... file_name file_content (text) file_date

does splitting table improve performance when select date , writer? or there other reason split table?

this called vertical partitioning.

basically if total info set big (say, larger ram), , of queries not utilize big file_content data, putting in table create main table much smaller, hence much improve cached in ram, , much, much faster.

of course of study retrieving file_content little slower, depends how utilize it.

i used technique on forum. stored posts text (bbcode parsed html) in main table, , original posts (in bbcode) in table. when displaying forum pages, main table hit. original post text used editing posts. divided posts table size 2 , avoided having double ram on server.

mysql database database-design database-table

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -