你不会是程序猿吧?

查询耗时咨询?

Elasticsearch | 作者 ridethewind | 发布于2019年03月21日 | 阅读数:1036


使用如下的语句去查询,连续几次查询,耗时相差较大,有几ms的也有将近1s的,而且一会快一会慢的,这是为什么啊
{
"query": {
"bool":{
"filter":{
"bool":{
"should":
[
{"term" : { "text" :"VvmxckLmQDHsXGsOxDSPCPUYusjrVq" }}
]
}
}
}
}
}
已邀请:

bellengao - 博客: https://www.jianshu.com/u/e0088e3e2127

赞同来自:

GET index_name/_stats?filter_path=indices.**.query_cache  看下filter缓存是否有被evict的

laoyang360 - 《一本书讲透Elasticsearch》作者,Elastic认证工程师 [死磕Elasitcsearch]知识星球地址:http://t.cn/RmwM3N9;微信公众号:铭毅天下; 博客:https://elastic.blog.csdn.net

赞同来自:

有缓存的原因。推荐阅读:《吃透 | Elasticsearch filter和query的不同》, 一起来围观吧 https://blog.csdn.net/wojiushi ... 68757

要回复问题请先登录注册