Kouhei Sutou
kou****@clear*****
2012年 12月 25日 (火) 10:14:44 JST
須藤です。 In <CA+vpKioVcWH-Nt_RR2m6pTUaTGpEX0e7ci-OX7Asi_wKzRg****@mail*****> "[groonga-dev,01144] Re: 特定条件にマッチするレコードの一括削除" on Sun, 23 Dec 2012 16:54:21 +0900, ongaeshi <ongae****@gmail*****> wrote: > =========================== > 1. 結果 > > rroonga-2.0.6 + groonga-2.0.7 をmilkodeに追加 : 19222レコード > > 今までの削除方法 : 7m 54.26s > 新しい削除方法 : 21.46sec > > かなり早くなりました :-) よかったです! > Groonga::Schema.define do |schema| > schema.change_table("terms") do |table| > table.index("documents.path", :with_position => true) > table.index("documents.package", :with_position => true) > table.index("documents.restpath", :with_position => true) > table.index("documents.content", :with_position => true) > table.index("documents.suffix", :with_position => true) > end > end > end :with_position => trueは必要そうなら自動で付けてくれるように rroongaを作っておいた気がするので、なくても大丈夫かもです! > =========================== > 3. サンプルとの相違 > > * table_change -> change_table > * add_index -> index > > であっているでしょうか? はい! 雰囲気だけで伝えてしまってすみません。。。 -- 須藤 功平 <kou****@clear*****> 株式会社クリアコード <http://www.clear-code.com/> (03-6231-7270) groongaサポート: http://groonga.org/ja/support/ パッチ採用はじめました: http://www.clear-code.com/recruitment/