Skip to content

Make it possible to customize various facet settings #264

@simonw

Description

@simonw

The new Facets implementation from #255 includes several hard-coded settings which should be made configurable somehow:

Number of rows to return in a facet (maybe this should also be an option that can be set via quersytring argument, e.g. ?_facet=qSpecies:40):

FACET_SIZE = 20

Time limit for executing a facet:

facet_rows = await self.execute(
name, facet_sql, params,
truncate=False, custom_time_limit=200
)

Maximum unique values returned in order for a column to be suggested as a facet:

# Detect suggested facets
FACET_LIMIT = 30

Time limit for calculating if a column should be a suggested facet:

distinct_values = await self.execute(
name, suggested_facet_sql, params,
truncate=False, custom_time_limit=50
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions