DBMSããã©ã«ãçµã¿è¾¼ã¿ã®å ¨ææ¤ç´¢
PostgreSQL 8.2ããGINã¨ããã¤ã³ããã¯ã¹å½¢å¼ã追å ããã
ãããç¨ããã°å
¨ææ¤ç´¢ã¤ã³ããã¯ã¹ãå®ç¾ã§ãã¾ãã
åãã¡æ¸ããå¥éè¡ãå¿
è¦ã¯ããã¾ããã
http://itpro.nikkeibp.co.jp/article/COLUMN/20060912/247864/?ST=lin-server&P=3
MySQLã®ããã©ã«ãã®å
¨ææ¤ç´¢ã¤ã³ããã¯ã¹ãã
åãã¡æ¸ããå¥éè¡ãã°æ¥æ¬èªã®å
¨ææ¤ç´¢ãå®ç¾ã§ãã¾ãã
http://pc8.2ch.net/test/read.cgi/php/1157467026/382
382 ï¼nobodyãã ï¼2006/10/05(æ¨) 14:59:05 ID:???
MySQLãªãMeCabã¨ãã§åãã¡æ¸ããã¦ãUTF-8ã§FULLTEXTã«æ¾ãè¾¼ãæãããã
ããããåãã¡æ¸ããããã£ã¦ãã¾ãã°
Sennaã®xxxxãã¤ã³ãã£ã³ã°ã¨ãLudiaãªãã¦ã¤ã©ãã¼ã
ã£ã¦è©±ã«ãªãã®ãã¨ããã¨ãããããããã§ããªããã§ã²ã¹ã
Sennaã¯è»¢ç½®ã¤ã³ããã¯ã¹ã¨ããå½¢å¼ã§ã¤ã³ããã¯ã¹ãä½ã£ã¦ããããã§ãã
転置ã¤ã³ããã¯ã¹ã¨ããã®ã¯ãæ¸ç±ã®å·»æ«ã«ããããç´¢å¼ã®ãããªãã®ã§ã
ããåèªãã©ã®ææ¸ã«ç»å ´ãããããåèªãã¨ã«è¨æ¶ããã¤ã³ããã¯ã¹ã§ãã
(ä¾)Senna p15, p313 : Ludia p3, p93, p135
å®å
¨è»¢ç½®ã¤ã³ããã¯ã¹ã¨ãããã®ãããã¾ãã¦ã
ããã¯ãããåèªãã©ã®ææ¸ã®ãã©ã®é¨åã«ãç»å ´ããããè¨æ¶ããã¤ã³ããã¯ã¹ã§ãã
Sennaã¯å®å
¨è»¢ç½®ã¤ã³ããã¯ã¹ãæ¡ç¨ãã¦ãã¾ãã
MySQLãPostgreSQLã®GINã¯å®å
¨è»¢ç½®ã¤ã³ããã¯ã¹ãæ¡ç¨ãã¦ãã¾ããã
ãã¨ãã°ããæ¤ç´¢ã§ããªããã¨ããæååã§æ¤ç´¢ãè¡ãããã¨ãã¾ãããã
ä¸è¬çã«ããæ¤ç´¢ã§ããªããã¯ãæ¤ç´¢/ã§ã/ãªããã¨åãã¡æ¸ãããã¾ãã
å®å
¨è»¢ç½®ã¤ã³ããã¯ã¹ã§ããã°ãåèªã®åºç¾ä½ç½®ãè¨æ¶ãã¦ããããã
ã¤ã³ããã¯ã¹ã®ã¿ã§ãæ¤ç´¢ã§ããªããã¨ããæååãæ¤ç´¢ã§ãã¾ãã
ã¨ããããåºç¾ä½ç½®æ
å ±ãæããªã転置ã¤ã³ããã¯ã¹ã§ã¯ã
ã¤ã³ããã¯ã¹ã®ã¿ã§ãæ¤ç´¢ã§ããªããã¨ããæååãæ¤ç´¢ã§ãã¾ããã
ãã£ã¨æ£ç¢ºã«è¨ãã¨ããæ¤ç´¢ã§ããªããã¨ããæåå以å¤ã®ã¬ã³ã¼ããã²ã£ããã£ã¦ãã¾ãã®ã§ãã
ãã¨ãã°ããä¿¡é ¼ã§ããæ¤ç´¢ã¨ã³ã¸ã³ãªãã¦ãªãããã¨ããææ¸ãå¼ã£ããã£ã¦ãã¾ãã¾ãã
ãªããªããä¸è¨ã®ææ¸ã¯ãä¿¡é ¼/ã§ã/ã/æ¤ç´¢/ã¨ã³ã¸ã³/ãªãã¦/ãªããã¨åãã¡æ¸ãããã¦ãã¾ãããã
ãæ¤ç´¢ããã§ããããªããã¨ããï¼ã¤ã®åèªãå«ãã ææ¸ã¨ãã¦å¤å®ããã¦ãã¾ãããã§ãã
ããããå ´åã«ã¯ããã£ããå
¨ææ¤ç´¢ãè¿ãã¦ããã¬ã³ã¼ããå
¨ä»¶ãã·ã¼ã±ã³ã·ã£ã«ã«ãã§ãã¯ãã¦ã
ãæ¤ç´¢ã§ããªããã¨ããæååãåºç¾ãã¦ãããã¨ã確èªããªããã°ãªãã¾ããã
ã¤ã¾ããã¤ã³ããã¯ã¹ã®ã¿ã§æ¤ç´¢ãå®çµãããgrepã¨åæ§ã®å¦çãä½è¨ã«å¿
è¦ã¨ãªã£ã¦ããã®ã§ãã
å
¨ä»¶ãã§ãã¯ããªãã¨ããé¸æè¢ãããã¾ããã
ãã®å ´åã¯æ¤ç´¢çµæã®ç²¾åº¦ãè½ã¡ã¦ãã¾ãã¾ãã
ãã®ããã«ãè¤æ°ã®åèªããã®é çªã©ããã«åºç¾ãã¦ãããã®ãæ¤ç´¢ãããã¨ã
ããã¬ã¼ãºæ¤ç´¢ãã¨ããã
ãããé«éã«è¡ãããã«ã¯å®å
¨è»¢ç½®ã¤ã³ããã¯ã¹ãé©ãã¦ãã¾ãã
æ¥æ¬èªã®ææ¸ã®å ´åã«ã¯ã
æ¤ç´¢ã¯ã¨ãªã§ä¸è¦ãã¬ã¼ãºæ¤ç´¢ã使ã£ã¦ããªãããã«è¦ãã¦ãã
åãã¡æ¸ããè¡ã£ãçµæã¨ãã¦ãã¬ã¼ãºæ¤ç´¢ãå¿
è¦ã¨ãªãå ´åãããã¾ãã
ãã¨ãDBMSããã©ã«ãçµã¿è¾¼ã¿ã®å
¨ä»¶æ¤ç´¢ãutf-8ã«å¯¾å¿ãã¦ãã
ä»®ã«åãã¡æ¸ãã«å¯¾å¿ããã¨ãã¦ãã
ããã ãã§é«éãã¤é«ç²¾åº¦ãªæ¥æ¬èªæ¤ç´¢ãè¡ããã¨ã¯ã§ããªãã®ã§ãã
ã¨ããããã§ãé»ã£ã¦Sennaã¨ãLudiaã¨ã使ã£ã¨ã!!! æªãããã«ã¯ããããããã
ã¨ããã話ãè¬æ¼ããããã模æ§ã
http://www.dbsj.org/Japanese/Archives/dbjapan/auto/2006/msg00211.html
[追è¨1]
ä¸è¨ã®è¬æ¼ã®è³æã¯ãã¡ã
[追è¨2]
ããã¿ã©ããããããã©ãã¯ããã¯ãããã£ãã®ã§è¿½è¨ã
MySQLã®å ´åãçµã¿è¾¼ã¿ã®FULLTEXTã使ã£ã¦ãã¦å°ãç¹ã¯ã
ã¤ã³ããã¯ã¹ä»ä¸å¾ã®é次æ´æ°ã®é
ãã¨ãã¬ã¼ãºæ¤ç´¢ã®é
ãã
ããã¦ãä»ã®ã¤ã³ããã¯ã¹ãä½µç¨ãããã¨ãã§ããªãã¨ããç¹ã§ãã
ä»ã®ã¤ã³ããã¯ã¹ãä½µç¨ã§ããªãã¨ã¯ã©ããããã¨ãã¨ããã¨ã
æ¤ç´¢ããçµæãorder by last_update descã¿ãããªã¯ã¨ãªãé
ããªãã¾ãã
ã¨ããã話ããææ¥è¬æ¼ãããäºå®ãããã
http://www.ospn.jp/osc2007-spring/modules/eguide/event.php?eid=25
æºå¸ã ãã©ãå½æ¥ä¼å ´ã«ç©ºããããã°å
¥ãããããã®ã§ã
èå³ã®ããæ¹ã¯åå ããã¦ã¿ã¦ã¯ãããã§ããããã