Tasuku SUENAGA
a****@razil*****
2008年 6月 4日 (水) 14:03:02 JST
末永です。 2ind機能のon/offによって、sumの結果が変わってしまう現象が報告されているようです。 sr_pg_idは数値の主キーです。 mysql> select SQL_NO_CACHE sum(sr_pg_id) from search where match(sr_title) against('im'); +---------------+ | sum(sr_pg_id) | +---------------+ | 501327 | +---------------+ 1 row in set (0.01 sec) mysql> set session senna_2ind = on; Query OK, 0 rows affected (0.00 sec) mysql> select SQL_NO_CACHE sum(sr_pg_id) from search where match(sr_title) against('im'); +---------------+ | sum(sr_pg_id) | +---------------+ | 872858 | +---------------+ 1 row in set (0.00 sec) mysql> set session senna_2ind = off; Query OK, 0 rows affected (0.00 sec) mysql> select SQL_NO_CACHE sum(sr_pg_id) from search where match(sr_title) against('im'); +---------------+ | sum(sr_pg_id) | +---------------+ | 501327 | +---------------+ 1 row in set (0.00 sec) --- 末永 匡 <a****@razil*****>