Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make choices_queryset not dependent on the time range #68

Merged
merged 1 commit into from
Aug 2, 2024

Conversation

PetrDlouhy
Copy link
Owner

@PetrDlouhy PetrDlouhy commented Oct 18, 2023

The current way how to get all resulting values for given query is to run that query, which could be sometimes very expensive.

Much quicker way how to get those choices could be by just getting related values. Especially if there is few resulting values and big set of data.

Sometimes the chart will get very messy if there are all the choices visible even if they are 0.

So we either need to find a way how to only relevant values or we will need to make this as an optional feature.

Also it seems that there is issue in current workflow - count limit applies before the choices are reduced, so we can end up with just "other" option.

@PetrDlouhy PetrDlouhy force-pushed the choice_queryset_quicker branch 10 times, most recently from 5ba2aaf to cf335fb Compare August 2, 2024 16:19
@PetrDlouhy PetrDlouhy merged commit eb7069e into master Aug 2, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant