LoginSignup
1
2

More than 5 years have passed since last update.

Elasticsearchのindex sortingをdate型で試してみる

Posted at

環境

  • Elasticsearch 6.2.0
  • Ubuntu 17.04
  • 1000万イベントをbulkで追加
  • mapping
    • date: date
    • date2: date
    • name: keyword
    • code: long
  • index.setting
    • sort: date
    • order: asc

検索

  • index sortingなしと比べて、同ソート順だと効果がある
    • search sort:asc
      • 40 ms -> 10 ms に短縮
  • 逆順では見られない
    • search sort:desc
      • 40 ms -> 40 ms で変わらず

その他数値

  • インデックス化にかかる時間
    • それほど変わらず
  • ヒープ
    • sortingしてる方が20MBほど大きい
  • ディスクサイズ
    • あまり変わらず
1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2