michael-s-molina commented on PR #29860:
URL: https://github.com/apache/superset/pull/29860#issuecomment-2271444588

   > You might be able to rewrite this as a single query for some dialects:
   
   @betodealmeida Given that the number of rows for tables and charts will 
hardly pass 1 million, I opted for preserving a lot of the previous logic and 
eliminating the part where we queried the `slices` table for each dataset. Now 
we query for all slices of type `table` for each database and I use a map to 
get the appropriate permissions. This will significantly reduce the number of 
queries to the number of databases.


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

To unsubscribe, e-mail: [email protected]

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