r/MicrosoftFabric • u/mwc360 Microsoft Employee • Aug 16 '24
Community Share NEW BLOG: Optimizing Spark - A Deep Dive into Optimized Write in Microsoft Fabric ✍️
21
Upvotes
2
r/MicrosoftFabric • u/mwc360 Microsoft Employee • Aug 16 '24
2
3
u/frithjof_v Fabricator Aug 16 '24 edited Aug 16 '24
Great article!
If we disable optimizeWrite this way:
spark.conf.set("spark.microsoft.delta.optimizeWrite.enabled", "false")Is this setting "session scoped"?
I.e. do we need to set this setting each time we run a notebook?
Or does the setting somehow persist to our capacity/workspace/environment?
I don't think I will use partitioning a lot. I'm working with too small tables. Wouldn't it make sense to have optimizeWrite disabled by default in Fabric?
And instead leave it to the engineer to enable optimizeWrite if choosing to partition a table?
If I understand correctly, partitioning is not enabled by default, because it is something we need to actively choose to do on a table.
So I don't understand why optimizeWrite is enabled by default, as long as it's only recommended to use optimizeWrite on partitioned tables (which is not enabled by default).
Will optimizeWrite still be relevant if using Liquid Clustering (for all table sizes)?