Skip to content

[2.1.X] _counts members in internal facets use a lot of memory #31

@andrewclegg

Description

@andrewclegg

This is especially true in sliced [distinct] facets where you have n time periods x m slices. And to make it worse, the BytesRef objects in the keys don't get reused, each one is a different object.

We could invert the collector logic and collect the slice labels first, and then the time periods. Or have a separate lookup table of labels, each of which is just indexed by an int. Like ordinals, but across the whole query.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions