[groonga-dev,03152] mroongaのウォームアップと範囲指定

Back to archive index

Masato Shimada cymba****@gmail*****
2015年 4月 6日 (月) 11:54:42 JST


お世話になっております、嶋田です。

> select ID from TABLE where DATETIME > 1400031915 order by DATETIME
> > (desc|asc) limit 100
> > →0.45 sec(Mroonga)
> >
> > select ID from TABLE where DATETIME > 1270031915 order by DATETIME
> > (desc|asc) limit 100
> > →5.48 sec(Mroonga)
> これは両方共、ストレージモードで試したらこの結果だったという例ですよね。
> show profileでどこに時間がかかっていそうかってわかりますか?
> 参考: Mroonga 3.11に追加されるDATETIME型のORDER BY最適化
>
> http://tech.gmo-media.jp/post/69542751128/mroonga-311-new-optimization
> ↑は全文検索を含んでいるなどクエリの内容が違うやつなんですが、
> show profileの例としてあげてみました。


show profileの結果ですが、 statisticsとpreparingが半々くらいの割合でほぼDuration全体を占めています。
全文検索を含めた場合はstatisticsとFULLTEXT initializationが半々くらいの割合でほぼDuration全体を占めています。
範囲の広さに応じて応答時間が増減しますが、statusのDurationの割合は一定です。
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
Download 



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