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
   
   
![image](https://user-images.githubusercontent.com/58375897/104667955-2d07a380-56a5-11eb-862b-36bd49cafc4d.png)
   
   **Example to reproduce**
    
   ![Screen Shot 2021-01-14 at 8 16 21 
PM](https://user-images.githubusercontent.com/58375897/104668457-1ada3500-56a6-11eb-99f5-0bb8d6922b55.png)
   


----------------------------------------------------------------
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]

Reply via email to