r/MicrosoftFabric 3h ago

Data Engineering 400MB optimal file size for SQL and PBI

4 Upvotes

Is anyone able to explain why file sizes for optimal SQL endpoint & PowerBI consumption performance is indicated to be between 400MB to 1GB?

My believe is that the difference is negligible for table sizes that would warrant small file sizes. However, is there a high level technical reason for 400MB?

It's also an odd number, unlike 64, 128, 256, 512.... etc..

https://learn.microsoft.com/en-us/fabric/fundamentals/table-maintenance-optimization

File sizes: Large (400 MB to 1 GB) for optimal SQL and Power BI performance.


r/MicrosoftFabric 6h ago

Community Share Direct Lake Inernals - My findings

11 Upvotes

Hey,

I spent the past few weeks, in my leisure time, digging into Direct Lake and trying to find working patterns around eviction, ideal physical layouts, and other things. I also wanted to write a general blog about Direct Lake with some proper hard numbers and evidence, so it can act as a Direct Lake guide beyond the docs.

Here’s the blog I wrote:

https://www.vojtechsima.com/post/microsoft-fabric-direct-lake-framing-caching-performance

I would love to hear whether you have done similar digging, what numbers you got, and what kinds of edge cases you have encountered when using Direct Lake in production.


r/MicrosoftFabric 9h ago

Data Engineering checkpointRetentionDuration - Lakehouse Table CDF incorrectly relying on checkpoint files

4 Upvotes

Perhaps my statement (title) is wrong, however, we are experiencing the same behaviour experienced here https://community.fabric.microsoft.com/t5/Data-Engineering/Change-Data-Feed-bug-Unable-to-reconstruct-state-despite-recent/td-p/4663530

As described here, https://www.mssqltips.com/sqlservertip/7962/microsoft-fabric-automatic-table-maintenance-checkpoint-statistics/ checkpointing is an optimization.

Official documentation across the board mentions the need for logRetentionDuration and file retention:
https://learn.microsoft.com/en-us/fabric/data-engineering/delta-lake-time-travel?tabs=sparksql

No indication of needing checkpointRetention or its impact.

Checkpointing is described as an optimization across the board in official channels, however those channels don't indicate that CDF/TT will fail if the optimization files get removed.

However, CDF fails if checkpoint files have been removed within the log retention window. Take the following scenario:

We have both the delta logs (with a long retention) and the unreferenced parquet files (not vacuumed and a long retention) for the CDF version. However, previous checkpoints have been automatically removed due to the default checkpointRetentionDuration being 2 days.

Therefore, retrieving CDF versions of records are always working if done within 2 days of the transaction, but always fail if done after 2 days even though we still maintain the delta log and the unreferenced files.

Many user forums indicate users having this same experience where the solution is to set checkpointRetentionDuration to the same duration as your logRetention.

Is this how it's supposed to work? Is this a confirmed bug? If it's by design, can Microsoft document it somewhere?

I imagine that the failure is due to reading the delta log, seeing the checkpoint, and no longer being able to reference the checkpoint file and instead of traversing the log for the cumulative changes (which it would do normally), it just fails. Considering the optimization isn't actually needed, it shouldn't fail there. It should revert to traversing the logs/parquet files for TT and CDF.


r/MicrosoftFabric 9h ago

Data Engineering New Spark SQL Query Button - Awesome But!

17 Upvotes

Really like the new query your Lakehouse with Spark SQL Feature in the Lakehouse Explorer, But!

  • Shift+Enter does not execute the query
  • F5 refreshes the browser and you lose your query
  • Run button does not run the highlighted text, but rather all that exists in the query editor

Really nice start, but little quality of life stuff would be greatly appreciated!


r/MicrosoftFabric 11h ago

Administration & Governance Anyone tried the new OneLake lifecycle management from the June update yet?

6 Upvotes

Saw they simplified storage and lifecycle management in OneLake in the June release. Has anyone actually switched over, or still testing it out first?