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

Back to archive index

Takashi Fujino fujin****@gmail*****
2017年 2月 20日 (月) 11:40:44 JST


須藤さん

お疲れ様です。藤野です。

-request_id 'id-2'を追加してselectコマンドを発行しましたが、結果変わりません。

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 'id-2'

2017-02-20
10:29:12.117664|0x6fc220|>/d/select?filter=geo_in_circle%28wgs84_geo_point%2C+%22128451091x503161044%22%2C+1000000%29&output_columns=xxx%2xxx%2xxx&limit=-1&command_version=1&scorer=_score%3Dgeo_distance%28wgs84_geo_point%2C+%22128451091x503161044%22%29&output_type=json&request_timeout=2.0&table=master&sort_keys=geo_distance%28wgs84_geo_point%2C+%22128451091x503161044%22%29&request_id=id-2
2017-02-20 10:29:12.176911|0x6fc220|:000000059254839 filter(223839)
2017-02-20 10:29:12.176936|0x6fc220|:000000059276951 select(223839)
2017-02-20 10:29:12.280741|0x6fc220|:000000163083654 score(223839)
2017-02-20 10:29:19.644822|0x6fc220|:000007527171012 sort(223839)
2017-02-20 10:29:22.397612|0x6fc220|:000010279962083 output(223839)
2017-02-20 10:29:22.398062|0x6fc220|<000010280404243 rc=0

宜しく御願い致します。

2017年2月20日(月) 10:02 Kouhei Sutou <kou****@clear*****>:

> 須藤です。
>
> 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 mailing list
> groon****@lists*****
> http://lists.osdn.me/mailman/listinfo/groonga-dev
>
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
Download 



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