Apr 24, 2008



http://www.scribd.com/doc/351488/MySQL-scaleout-by-application-partitioning
水平分割する方法にはいくつかあって、
*文字分割 a-c,d-g,h-zなど
*hash分割 hash mod
*lookup table 分割


mysql> SELECT substring(MD5(id),1,2) AS md,CONCAT("wikinames_",substring(md5(id),1,2)) from wikinames limit 150;
とかって感じでmd5ベースで分割すればキーになるカラムがintである必要がない

Posted at 15:30
viewed times | Edit

TrackBack ping me at
http://webrec.jp/blog/diary_200804241530.
Post a comment

writeback message: