ES 搜索优化测试 - indexSort 对检索性能提升50%

indexSort 是在写入数据的时候,根据某个字段做排序。我们可以理解为数据的预排序。
在检索的时候,假如搜索正好是根据排好序的字段做排序的,那么将会有 50%检索性能提升效果

注意,不要在请求中返回 count数据总量。这样配合indexSort预排序,可以提前终止请求。提升效果在数据量非常大情况下,会非常明显!原理是触发了es的提前终止计算请求的机制。

在本篇文章中,不做过多的名词的解释,只是分享测试结论,我的测试数据集,测试过程,以及测试输出的日志。 我会在下一篇文章中,结合源码对原理进行一个解析。

测试结论

对需要返回数据总量的查询,提升在20% - 30%

对不需要返回数据总量的查询,提升在50%左右

开启写入根据某个字段排序,写入速度降低50%左右

indexSort适用场景

搜索结果根据某个字段排序,且仅仅取结果集的TopN。

说明

排序前,排序后磁盘使用不变。

reindex数据的时候,新索引根据 pubtime字段排序。

写入速度,降低将近一倍。需要我们去评估愿意不愿意,以用牺牲写入速度,提升查询速度。

搜全部


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

未排序的索引

排序过的数据

带搜索条件

未排序索引

排序后的索引

写程序来跑一遍查询

不获取总数据量的查询

查询时,不回去总数据量。这种方式,请求会提前截数据请求。所以提升效果更好一点。

查询性能提升在 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%

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值