eugeniamz opened a new issue #12531: URL: https://github.com/apache/superset/issues/12531
Filter box does a ```select <field> from datasource``` for each column in the filter box but the queries that execute in the database add a predicated to select everything from the previous date or older ``` select <field> from datasource where <random date column> < 'date 00:00'``` This won't include the new values from the 'today' and scan all the data from the dataset. This full scan in the database can be expensive to the database.. if in the dataset exists the option to predefined a predicated to improve the filters loads performance, we should use the same for the filters box values instead to add a random predicated  **Example to reproduce**  ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
