ES search optimization test - indexSort improves retrieval performance by 50%

indexSort is to sort according to a certain field when writing data. We can understand it as the pre-sorting of data.
When searching, if the search happens to be sorted according to the sorted fields, then there will be a 50% search performance improvement .

Note, do not return the total amount of count data in the request. In this way, with indexSort pre-sorting, the request can be terminated early. The improvement effect will be very obvious when the amount of data is very large! The principle is to trigger the mechanism of es early termination calculation request.

In this article, I will not explain too many terms, but just share the test conclusion, my test data set, the test process, and the log of the test output. In the next article, I will analyze the principle combined with the source code.

test conclusion

For queries that need to return the total amount of data, the increase is 20% - 30% ;

For queries that do not need to return the total amount of data, the increase is about 50% ;

Enable writing to sort by a certain field, and the writing speed will be reduced by about 50% .

indexSort applicable scenarios

The search results are sorted according to a certain field, and only the TopN of the result set is taken .

illustrate

Before sorting, disk usage remains the same after sorting.

When reindexing data, the new index is sorted according to the pubtime field.

The writing speed is nearly doubled. We need to evaluate whether we are willing or not to increase query speed at the expense of writing speed.

search all

GET all_data/_search
{
  "size": 20, 
  "query": {
    "match_all": {}
  },
  "sort": [
    {
      "pubtime": {
        "order": "desc"
      }
    }
  ]
}

unsorted index

sorted data

with search criteria

unsorted index

sorted index

Write a program to run the query

Queries that do not get the total amount of data

When querying, the total data volume is not returned. In this way, the request intercepts the data request in advance. So the lifting effect is better.

The query performance is improved by about 50%!

[2022-09-28 15:11:27.392] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 中国,查询时间对比 19208 vs 12345, 查询性能提升 35.729904%
[2022-09-28 15:11:45.197] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 美国,查询时间对比 10827 vs 6844, 查询性能提升 36.787663%
[2022-09-28 15:12:05.114] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 拜登,查询时间对比 12741 vs 6856, 查询性能提升 46.189465%
[2022-09-28 15:12:17.708] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 疫情,查询时间对比 7079 vs 4656, 查询性能提升 34.227997%
[2022-09-28 15:12:33.628] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 苹果,查询时间对比 9617 vs 5029, 查询性能提升 47.707184%
[2022-09-28 15:12:49.224] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 华为,查询时间对比 9744 vs 5298, 查询性能提升 45.62808%
[2022-09-28 15:13:00.639] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 特朗普,查询时间对比 7027 vs 3668, 查询性能提升 47.80134%
[2022-09-28 15:13:10.678] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 利好,查询时间对比 5762 vs 3711, 查询性能提升 35.59528%
[2022-09-28 15:13:23.337] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 浪漫,查询时间对比 7153 vs 4515, 查询性能提升 36.87963%
[2022-09-28 15:13:33.365] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 马斯特,查询时间对比 5760 vs 3426, 查询性能提升 40.520832%
[2022-09-28 15:13:39.643] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 特斯拉,查询时间对比 3360 vs 1127, 查询性能提升 66.458336%
[2022-09-28 15:13:51.975] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 台湾,查询时间对比 6400 vs 4808, 查询性能提升 24.875%
[2022-09-28 15:13:59.918] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 香港,查询时间对比 4422 vs 2911, 查询性能提升 34.17006%
[2022-09-28 15:14:09.137] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 美食,查询时间对比 4861 vs 3673, 查询性能提升 24.439415%
[2022-09-28 15:14:18.666] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 微信,查询时间对比 5507 vs 3727, 查询性能提升 32.3225%
[2022-09-28 15:14:29.458] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 晴天,查询时间对比 5832 vs 3759, 查询性能提升 35.54527%
[2022-09-28 15:14:40.760] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 北京,查询时间对比 6071 vs 4054, 查询性能提升 33.223522%
[2022-09-28 15:14:50.880] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 救援,查询时间对比 4670 vs 3515, 查询性能提升 24.732334%
[2022-09-28 15:15:00.745] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 失败,查询时间对比 4982 vs 3589, 查询性能提升 27.960659%
[2022-09-28 15:15:09.850] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 报警,查询时间对比 4517 vs 3303, 查询性能提升 26.876244%
[2022-09-28 15:15:20.026] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 媒体,查询时间对比 5595 vs 3892, 查询性能提升 30.43789%
[2022-09-28 15:15:28.024] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 新疆,查询时间对比 4361 vs 3301, 查询性能提升 24.306353%
[2022-09-28 15:15:39.414] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 京东,查询时间对比 6133 vs 4242, 查询性能提升 30.833197%
[2022-09-28 15:15:48.499] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 深圳,查询时间对比 4699 vs 3202, 查询性能提升 31.857841%
[2022-09-28 15:15:56.673] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 爆炸,查询时间对比 3660 vs 2663, 查询性能提升 27.240437%
[2022-09-28 15:16:07.100] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 事故,查询时间对比 5171 vs 3341, 查询性能提升 35.389675%
[2022-09-28 15:16:15.298] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 征地,查询时间对比 4129 vs 2306, 查询性能提升 44.151127%
[2022-09-28 15:16:21.222] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 抗议,查询时间对比 3436 vs 2136, 查询性能提升 37.834694%
[2022-09-28 15:16:30.504] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 聚众,查询时间对比 4047 vs 2211, 查询性能提升 45.36694%
[2022-09-28 15:16:40.229] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 黑社会,查询时间对比 5306 vs 3058, 查询性能提升 42.36713%
[2022-09-28 15:17:10.403] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 堵路,查询时间对比 17218 vs 12614, 查询性能提升 26.739458%
[2022-09-28 15:17:16.773] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 打砸,查询时间对比 3418 vs 2562, 查询性能提升 25.043884%
[2022-09-28 15:17:21.797] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 罢工,查询时间对比 3044 vs 1711, 查询性能提升 43.791065%
[2022-09-28 15:17:25.811] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 跳楼,查询时间对比 2103 vs 1530, 查询性能提升 27.246792%
[2022-09-28 15:17:29.744] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 招募,查询时间对比 2144 vs 1477, 查询性能提升 31.110075%
[2022-09-28 15:17:46.718] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 黑旅馆,查询时间对比 8749 vs 6787, 查询性能提升 22.42542%
[2022-09-28 15:17:53.286] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 争议,查询时间对比 3274 vs 2409, 查询性能提升 26.42028%
[2022-09-28 15:17:59.603] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 盗窃,查询时间对比 3660 vs 2226, 查询性能提升 39.18033%
[2022-09-28 15:18:04.673] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 碰车,查询时间对比 2882 vs 1897, 查询性能提升 34.177654%
[2022-09-28 15:18:10.273] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 示威,查询时间对比 3550 vs 1851, 查询性能提升 47.859158%
[2022-09-28 15:18:18.569] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 不满,查询时间对比 4541 vs 3504, 查询性能提升 22.83638%
[2022-09-28 15:18:21.175] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 黑中介,查询时间对比 1163 vs 1280, 查询性能提升 -10.060189%
[2022-09-28 15:18:24.024] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 失火,查询时间对比 1653 vs 974, 查询性能提升 41.07683%
[2022-09-28 15:18:32.441] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 举报,查询时间对比 4766 vs 3491, 查询性能提升 26.751991%
[2022-09-28 15:18:37.670] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 公道,查询时间对比 2788 vs 2275, 查询性能提升 18.400288%
[2022-09-28 15:18:43.248] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 经济学家,查询时间对比 3129 vs 2198, 查询性能提升 29.753914%
[2022-09-28 15:18:54.277] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 中国新闻周刊,查询时间对比 6488 vs 4204, 查询性能提升 35.203453%
[2022-09-28 15:18:58.651] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 永定河,查询时间对比 2221 vs 2033, 查询性能提升 8.464655%
[2022-09-28 15:19:02.709] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 中国大地财产保险股份有限公司,查询时间对比 667 vs 1089, 查询性能提升 -63.268364%
[2022-09-28 15:19:16.086] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 冬奧,查询时间对比 6547 vs 5834, 查询性能提升 10.890484%
[2022-09-28 15:19:23.021] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 天津大事件,查询时间对比 3659 vs 3193, 查询性能提升 12.73572%

获取总数据量的查询

"track_total_hits": true

[2022-09-28 15:01:17.255] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 中国,查询时间对比 30614 vs 12449, 查询性能提升 59.335594%
[2022-09-28 15:01:33.715] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 美国,查询时间对比 9346 vs 6723, 查询性能提升 28.065481%
[2022-09-28 15:01:48.817] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 拜登,查询时间对比 6915 vs 6732, 查询性能提升 2.646421%
[2022-09-28 15:02:00.940] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 疫情,查询时间对比 6638 vs 4589, 查询性能提升 30.867731%
[2022-09-28 15:02:14.040] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 苹果,查询时间对比 7322 vs 5007, 查询性能提升 31.617046%
[2022-09-28 15:02:26.842] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 华为,查询时间对比 6989 vs 5249, 查询性能提升 24.896265%
[2022-09-28 15:02:35.724] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 特朗普,查询时间对比 4868 vs 3618, 查询性能提升 25.677895%
[2022-09-28 15:02:46.339] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 利好,查询时间对比 4763 vs 3694, 查询性能提升 22.443838%
[2022-09-28 15:02:59.514] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 浪漫,查询时间对比 7676 vs 4613, 查询性能提升 39.903595%
[2022-09-28 15:03:06.844] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 马斯特,查询时间对比 3324 vs 3409, 查询性能提升 -2.55716%
[2022-09-28 15:03:10.144] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 特斯拉,查询时间对比 883 vs 1090, 查询性能提升 -23.44281%
[2022-09-28 15:03:22.289] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 台湾,查询时间对比 6472 vs 4348, 查询性能提升 32.818295%
[2022-09-28 15:03:29.598] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 香港,查询时间对比 3996 vs 2931, 查询性能提升 26.651651%
[2022-09-28 15:03:38.996] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 美食,查询时间对比 5498 vs 3638, 查询性能提升 33.830486%
[2022-09-28 15:03:48.340] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 微信,查询时间对比 5343 vs 3789, 查询性能提升 29.084784%
[2022-09-28 15:04:00.864] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 晴天,查询时间对比 5011 vs 3854, 查询性能提升 23.089203%
[2022-09-28 15:04:12.482] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 北京,查询时间对比 6863 vs 4193, 查询性能提升 38.90427%
[2022-09-28 15:04:21.884] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 救援,查询时间对比 4879 vs 3458, 查询性能提升 29.12482%
[2022-09-28 15:04:31.261] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 失败,查询时间对比 4508 vs 3506, 查询性能提升 22.227152%
[2022-09-28 15:04:40.186] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 报警,查询时间对比 4517 vs 3292, 查询性能提升 27.11977%
[2022-09-28 15:04:49.941] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 媒体,查询时间对比 4952 vs 3711, 查询性能提升 25.060581%
[2022-09-28 15:04:58.081] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 新疆,查询时间对比 4245 vs 3264, 查询性能提升 23.10954%
[2022-09-28 15:05:09.488] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 京东,查询时间对比 6368 vs 4122, 查询性能提升 35.2701%
[2022-09-28 15:05:17.616] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 深圳,查询时间对比 4395 vs 3264, 查询性能提升 25.73379%
[2022-09-28 15:05:24.465] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 爆炸,查询时间对比 3818 vs 2674, 查询性能提升 29.963333%
[2022-09-28 15:05:33.007] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 事故,查询时间对比 4921 vs 3330, 查询性能提升 32.330826%
[2022-09-28 15:05:37.997] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 征地,查询时间对比 1822 vs 2334, 查询性能提升 -28.100988%
[2022-09-28 15:05:42.368] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 抗议,查询时间对比 1982 vs 2084, 查询性能提升 -5.146317%
[2022-09-28 15:05:47.438] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 聚众,查询时间对比 2386 vs 2147, 查询性能提升 10.016765%
[2022-09-28 15:05:53.947] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 黑社会,查询时间对比 3321 vs 3017, 查询性能提升 9.153869%
[2022-09-28 15:06:23.050] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 堵路,查询时间对比 15855 vs 12728, 查询性能提升 19.722485%
[2022-09-28 15:06:28.159] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 打砸,查询时间对比 2042 vs 2530, 查询性能提升 -23.89814%
[2022-09-28 15:06:31.833] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 罢工,查询时间对比 1716 vs 1703, 查询性能提升 0.75757575%
[2022-09-28 15:06:35.451] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 跳楼,查询时间对比 1512 vs 1467, 查询性能提升 2.9761906%
[2022-09-28 15:06:39.666] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 招募,查询时间对比 1825 vs 1445, 查询性能提升 20.821918%
[2022-09-28 15:06:57.120] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 黑旅馆,查询时间对比 8925 vs 7064, 查询性能提升 20.85154%
[2022-09-28 15:07:03.149] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 争议,查询时间对比 3064 vs 2336, 查询性能提升 23.75979%
[2022-09-28 15:07:08.761] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 盗窃,查询时间对比 2818 vs 2308, 查询性能提升 18.097942%
[2022-09-28 15:07:13.334] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 碰车,查询时间对比 2274 vs 1952, 查询性能提升 14.160069%
[2022-09-28 15:07:17.659] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 示威,查询时间对比 1895 vs 1737, 查询性能提升 8.337731%
[2022-09-28 15:07:26.307] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 不满,查询时间对比 4829 vs 3439, 查询性能提升 28.784428%
[2022-09-28 15:07:28.612] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 黑中介,查询时间对比 548 vs 1282, 查询性能提升 -133.9416%
[2022-09-28 15:07:30.962] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 失火,查询时间对比 764 vs 954, 查询性能提升 -24.86911%
[2022-09-28 15:07:39.629] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 举报,查询时间对比 4697 vs 3382, 查询性能提升 27.996593%
[2022-09-28 15:07:45.703] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 公道,查询时间对比 2755 vs 2391, 查询性能提升 13.212341%
[2022-09-28 15:07:50.766] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 经济学家,查询时间对比 2124 vs 2161, 查询性能提升 -1.7419962%
[2022-09-28 15:08:02.322] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 中国新闻周刊,查询时间对比 5620 vs 4195, 查询性能提升 25.355873%
[2022-09-28 15:08:07.484] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 永定河,查询时间对比 2088 vs 2092, 查询性能提升 -0.19157088%
[2022-09-28 15:08:21.415] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 中国大地财产保险股份有限公司,查询时间对比 572 vs 1172, 查询性能提升 -104.8951%
[2022-09-28 15:08:39.117] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 冬奧,查询时间对比 6664 vs 6016, 查询性能提升 9.72389%
[2022-09-28 15:08:46.613] [main] INFO  c.a.e.service.impl.TimeComparisonImpl - index_sort 前后测试对比, 搜索词 天津大事件,查询时间对比 3711 vs 3165, 查询性能提升 14.713015%

Guess you like

Origin blog.csdn.net/star1210644725/article/details/129775795