elasticsearch 如何查找elasticsearch查询的执行时间
我正在使用elasticsearch从rails应用程序获取快速结果。我想知道执行一个特定查询需要多少时间?是否有任何工具可用于查找和比较执行时间,以便优化查询?响应对象中的“take”属性是以毫秒为单位的执行时间。例如:
elasticsearch 如何查找elasticsearch查询的执行时间,
elasticsearch,indexing,query-optimization,kibana,
elasticsearch,Indexing,Query Optimization,Kibana,我正在使用elasticsearch从rails应用程序获取快速结果。我想知道执行一个特定查询需要多少时间?是否有任何工具可用于查找和比较执行时间,以便优化查询?响应对象中的“take”属性是以毫秒为单位的执行时间。例如: { "took" : 17, "timed_out" : false, "_shards" : { "total" : 5, "successful" : 5, "skipped" : 0, "failed" : 0 },
{
"took" : 17,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : 0,
"max_score" : null,
"hits" : [ ]
}
}
响应对象中的“take”属性是以毫秒为单位的执行时间。例如:
{
"took" : 17,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : 0,
"max_score" : null,
"hits" : [ ]
}
}