Forum Discussion

LimitFounder's avatar
LimitFounder
New Member
2 months ago
Solved

DirectQueryCapabilities.From() takes too much time

I see in PowerBI Desktop, that the DirectQueryCapabilities.From() function takes around 11s from a 14s query, and I would like to know more about this. Loading the data from Redshift itself is under ...
  • Shai_Karmani's avatar
    2 months ago

    Yeah, seen this. That step isn't loading data, it's the ODBC capabilities handshake. The connector fires a bunch of metadata calls (SQLGetInfo, SQLGetTypeInfo, catalog queries) to figure out what SQL it can fold. On Redshift those hit pg_catalog on the leader node, and it's dozens of small sequential round trips, so if there's any latency between you and the cluster (VPN, cross region) it adds up fast. Desktop also spins up fresh containers per evaluation so you pay it again and again while authoring.

     

    Quick checks: test from a machine in the same region as the cluster, if the 11s disappears it's pure latency.

    Update the Redshift ODBC driver, older ones are chattier. And in Options > Data Load turn off background preview and lower simultaneous evaluations so fewer containers do the handshake.

     

    If that was helpful, please give a thumbs up and mark it as the accepted solution.

     

     

     

    Thanks, Shai Karmani

    Let's connect in LinkedIn