Forum Discussion

manoj_0911's avatar
manoj_0911
Kudo Commander
2 months ago
Solved

single dataset refresh, we observe multiple SQL statements

During a single dataset refresh, we observe multiple SQL statements including: MAX(UPDATE_DATETIME) queries TOP 1000 queries Metadata queries Is this expected Power BI behavior when Detect Data...
  • rajendraongole1's avatar
    2 months ago

    Hi manoj_0911  -Yes, this is expected behavior. To add to oussamahaimoud's explanation, Power BI can generate multiple SQL statements during a single refresh cycle because it performs several operations behind the scenes, including schema validation, partition evaluation, change detection, and data retrieval. The exact number of queries may vary depending on the incremental refresh policy, number of partitions, and whether query folding is occurring correctly.

    If you're investigating performance, I'd recommend reviewing the actual partition refresh queries and confirming that the RangeStart/RangeEnd filters are being folded to the source. This will help ensure the incremental refresh is operating as efficiently as intended.

    Hope this helps.