[groonga-dev,04285] Re: リクエストタイムアウトを指定しても、設定した結果にならない。

Back to archive index

Kouhei Sutou kou****@clear*****
2017年 2月 20日 (月) 10:01:52 JST


須藤です。

In <CAE+V****@mail*****>
  "[groonga-dev,04284] リクエストタイムアウトを指定しても、設定した結果にならない。" on Sun, 19 Feb 2017 23:19:33 +0000,
  Takashi Fujino <fujin****@gmail*****> wrote:

> Groonga6.1.0、CentOS7で位置情報検索を行っています。
> 開発者からリクエストタイムアウトを要望され、groongaのリクエストタイムアウトを検証しました。
> http://groonga.org/ja/docs/reference/commands/request_cancel.html
> 
> 以下のような--request_timeout '2.0'を付加したselectコマンドを発行しましたが、
> 2秒でタイムアウトできませんでした(10秒掛かってデータ結果が返ってきている)。
> select --filter 'geo_in_circle(wgs84_geo_point, "128451091x503161044",
> 1000000)' --output_columns 'xxx,xxx' --limit '-1' --command_version '1'
> --scorer '_score=geo_distance(wgs84_geo_point, "128451091x503161044")'
> --output_type 'json' --request_timeout '2.0' --table 'master' --sort_keys
> 'geo_distance(wgs84_geo_point, "128451091x503161044")'

--request_id XXXも指定してみてもらえますか?
リエクストタイムアウト機能を使うにはリクエストIDの指定が必要
なのです。

リクエストIDについては↓を参照してください。
  http://groonga.org/ja/docs/reference/command/request_id.html


-- 
須藤 功平 <kou****@clear*****>
株式会社クリアコード <http://www.clear-code.com/>

Groongaベースの全文検索システムを総合サポート:
  http://groonga.org/ja/support/
パッチ採用 - プログラミングが楽しい人向けの採用プロセス:
  http://www.clear-code.com/recruitment/
OSS開発支援サービス:
  http://www.clear-code.com/blog/2016/6/27.html




groonga-dev メーリングリストの案内
Back to archive index