Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-3442

In ElasticSearch adapter, set `stored_fields = _none_` to prohibit FetchPhase get involved

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Flags:
      Patch, Important

      Description

      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 entirely, and skip the Elasticsearch's `fetch phase` which would bring time-consuming `fetch phase` for metadata fields such as '_id' etc.

        Attachments

          Activity

            People

            • Assignee:
              danny0405 Danny Chen
              Reporter:
              yunfeng,wu yunfeng

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2h 40m
                2h 40m

                  Issue deployment