Federated Queries - Dynamic SQL Generation Improvements

DataArchitect Member
edited December 2023 in Federated Ideas

I've observed that the dynamic SQL that gets executed for federated datasets isn't always the most optimal. For instance to fetch the possible value list for a series or quick filter, it is still executing the same query as for the main card. It would perform much faster if it did a distinct over just the column needed for that quick filter. Or it shared the results from the main card query. But I've seen Domo execute two queries that are identical, once for the main card but then a second for quick filter options. It makes the federated database work harder than it needs to. Plus if the federated DB is a columnar db such as Redshift, it could return a distinct list much faster rather waiting for the aggregate query to return.

1 votes

Active · Last Updated