ãããã¤ã³ã¹ãã¼ã«ä»£è¡¨ã®ã©ã¤ãããã¯ããã°
èªåç¨ã¡ã¢ Tokyo Cabinet/Tyrant ã®ã¤ã³ã¹ãã¼ã«æé ãã¡ã¢ãã¦ããã·ã§ã«ã¹ã¯ãªãã風ã«æ¸ããã ãã¾ãçã£å½ã«åãããã®ãããªãã§ããã©ããå½¹ã«ç«ã¦ã°ã CentOS 5.5ã§ãã ttservctlã®æ¸ãæãã¯é¢åã ã£ããããechoããã ãã¨ãã⦠root権éã§å®è¡ããåæã¨ããå¶æªãªæãã§ããããã©ããã #!/bin/sh # # Tokyo Cabinet/Tyrant compile script # $Id$ # DIR="/usr/local/src" TC_VERSION="tokyocabinet-1.4.46" TT_VERSION="tokyotyrant-1.1.41" cd $DIR # # Download # wget http://fallabs.com/tokyocabinet/$TC_VERSION.tar.gz wget htt
ã©ããªã¨ããã«ä½¿ããï¼ ãã£ã¨ãç°¡åãªå©ç¨æ¹æ³ã¯ãååç´¹ä»ããmemcachedã®ä»£æ¿ã¨ãã¦å©ç¨ããã¨ãããã®ã§ããmemcachedäºæãããã³ã«ãå®è£ ããã¦ãããããmemcachedãå©ç¨ãã¦ããå ´åãã¼ãçªå·ãå¤ããã ãã§TokyoTyrantã«å·®ãæ¿ãããã¨ãå¯è½ã§ããããã ãã§ç°¡åã«ãã¼ã¿ã®æ°¸ç¶æ§ãå¾ããã¾ãã ã¾ãããã¼ãã«ãã¼ã¿ãã¼ã¹ãå©ç¨ããã°ä¸ã¤ã®keyã«å¯¾ãã¦è¤æ°ã®valueãæããããã¨ãå¯è½ã§ãããkeyã ãã§ãªãä»»æã®valueãæ¡ä»¶ã¨ãã¦ãã¼ã¿ã®æ¤ç´¢ãè¡ããã¨ãã§ãã¾ããJOINãGROUP BYã¨ãã£ãå¦çã¯è¡ãã¾ãããããã以å¤ã®ã»ã¨ãã©ã®æ¤ç´¢æ¡ä»¶ãæ±ãã¾ããã¬ã¹ãã³ã¹ã¯RDBMSã«æ¯ã¹ã¦é«éãªã®ã§ãã¢ã¯ã»ã¹æ°ãå¤ããã¼ãã«ãTokyoTyrantã®ãã¼ãã«ãã¼ã¿ãã¼ã¹ã«è¼ãæãããã¨ãã£ãå©ç¨æ¹æ³ãå¹æçããããã¾ããã å ·ä½çãªå©ç¨ã·ã¼ã³ memcac
memcachedã使ã£ã¦ãããã ãã©ããã®æ©è½ã«æºè¶³ã§ããªãé¨åãã§ã¦ããã®ã§ã¡ã¢ã ä¸ã¤ã®ãã¼ã§ä¿åã§ãããµã¤ãºã®ä¸éã1Mã 1M以å ã«åã¾ããã¨ã®ã»ããå¤ãã¨æããã©ãç»åãã¢ãããã¼ãããã¨ãã®ä¸æãã¡ã¤ã«ãbase64ã¨ã³ã³ã¼ããã¦ãmemcachedã«ä¿åãããã¨æã£ããã1Mãè¶ ãã¦ãã¾ã£ã¦ã§ããªãã£ãã åææ¥ç¶æ°ã®ä¸éãã©ãã2000ã»ã©ã ãã©ãã£ãã¯ãéä¸ããã¨ãã«ãã®ä¸éãè¶ ããããããmemcachedãµã¼ããæç¶çã«è½ã¡ããã¡ã¢ãªãflushãã¦å¾©æ§ããã¾ã£ã¦ããã£ãã·ã¥ã¯å ¨é¨æ¶ããã memcachedãµã¼ããåèµ·åããã¨ãã£ãã·ã¥ãå ¨ã¦æ¶ããã ããã¯ãªã³ã¡ã¢ãªãªã®ã§ãããããªããã©ããã ã¡ãªã¿ã«ãã¡ã§ã¯åé·æ§ããããããã«repcachedã使ã£ã¦ããã ãã¦ãããã§è§£æ±ºã§ããããªãã®ãããã¯ã¢ããã memstored ä¸ã¤ã®ãã¼ã§ä¿åã§ãããµã¤ãºã®
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}