[ 
https://issues.apache.org/jira/browse/CALCITE-3442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16958631#comment-16958631
 ] 

yunfeng edited comment on CALCITE-3442 at 10/24/19 7:46 AM:
------------------------------------------------------------

 I do not know whether this can result  in other problem,  maybe this can work 
just only have count\(*\)  、metric aggregation and do not need the origin 
document fields


was (Author: yunfeng,wu):
 I do not know whether this can result  in other problem,  maybe this can work 
just only have count(*)  、metric aggregation and do not need the origin 
document fields

> Set `stored_fields = _none` prohibit `FetchPhase` get be involved and improve 
> the performance for Elasticsearch
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: CALCITE-3442
>                 URL: https://issues.apache.org/jira/browse/CALCITE-3442
>             Project: Calcite
>          Issue Type: Improvement
>          Components: elasticsearch-adapter
>            Reporter: yunfeng
>            Priority: Major
>              Labels: performance, pull-request-available
>             Fix For: next
>
>         Attachments: elasticsearch-adapter.patch
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
>  For elasticsearch-adapter,   when  ElasticsearchAggregate  involved , set 
> _source = false and size = 0 , Elasticsearch `FetchPhase` would still be 
> executed against the current  search process and visit the Lucene 
> stored_fields, which would lead to performance declined dramatically.  
> We can set `stored_fields = _none` prohibit this such behavior completely



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to