内山敏郎
toshio_uchiy****@mirro*****
2018年 7月 24日 (火) 13:58:27 JST
須藤さま お世話になります。内山です。 -----Original Message----- From: groon****@lists***** [mailto:groon****@lists*****] On Behalf Of Kouhei Sutou Sent: Tuesday, July 24, 2018 11:43 AM To: groon****@lists***** Subject: [groonga-dev,04639] Re: index row, maximum size is 8191 須藤です。 In <00a201d4224b$ccead2a0$66c077e0$@mirror.ocn.ne.jp> "[groonga-dev,04637] index row, maximum size is 8191" on Mon, 23 Jul 2018 15:10:05 +0900, 内山敏郎 <toshio_uchiy****@mirro*****> wrote: > moovle=# select content from subtitled where content &@~ 'ゴルフ'; > > ERROR: index row requires 9272 bytes, maximum size is 8191 ↓の結果を教えてもらえますか? explain verbose select content from subtitled where content &@~ 'ゴルフ'; 現在の結果は、 moovle=# explain verbose select content from subtitled where content &@~ 'ゴ ルフ'; QUERY PLAN ---------------------------------------------------------------------------- ---- ------------------------------------- Index Only Scan using subtitled2_pgroonga_content_idx on public.subtitled (cos t=0.00..1759.40 rows=1479 width=366) Output: content Index Cond: (subtitled.content &@~ 'ゴルフ'::text) (3 行) moovle=# です。 しかし、自分で調べて、pg_hint_plan を用いて、Index Only Scan を Index Scan に することで、エラーが回避できることが分かりました。PGroonga の問題ではなく て、 PGroongaのインデックスを使っているときに、PostgreSQL が Index Only Scan の プランで query を実行するためのようです。 PGroonga をインストールしたらこの現象がなくなるようにできればより良いです が、 現状でも回避できることが分かりました。 ありがとうございます。 -- 須藤 功平 <kou****@clear*****> 株式会社クリアコード <http://www.clear-code.com/> Groongaベースの全文検索システムを総合サポート: http://groonga.org/ja/support/ データ処理ツールの開発: http://www.clear-code.com/blog/2018/7/11.html _______________________________________________ groonga-dev mailing list groon****@lists***** https://lists.osdn.me/mailman/listinfo/groonga-dev