为了简单我直接用sql来说明我想要问的问题哈
当我发起一个类似『select * from table where a = 'es' limit 10』的查询时,根据es的query then fetch过程,会去每个分片上拉取10条数据的id回coordinator节点,节点再根据评分排序再进行拉取。
那如果我的查询是『select avg(count) from table where a = 'es' group by b』的查询,es内部的请求、转发方式是如何的呢?
当我发起一个类似『select * from table where a = 'es' limit 10』的查询时,根据es的query then fetch过程,会去每个分片上拉取10条数据的id回coordinator节点,节点再根据评分排序再进行拉取。
那如果我的查询是『select avg(count) from table where a = 'es' group by b』的查询,es内部的请求、转发方式是如何的呢?
0 个回复