Forum Discussion
Saving small delta table via notebook extremely slow
- Anonymous2 years ago
Hi ntimmerman,
In fact, I think this cost of processing almost upper to limit and changing to use other functions may not obviously improve the performance when you operate with small tables.
For optimized on the fabric notebook performance, you can take a look at the following document if it helps:Delta Lake table optimization and V-Order - Microsoft Fabric | Microsoft Learn
Regards,
Xiaoxin Sheng
Sure!
We are on a F4 Fabric capacity.
I added some logging to my pyspark notebook. One example is this table:
Imported 8 records for table aircraft_hours_history query time: 1.9679827690124512, import time: 9.02900743484497 seconds
This table only has 6 columns and only numeric and date-time columns
The table only has 9 records in it:
But it still takes more than 9 seconds to merge the 9 records from the source.
The code for merging the table is pretty simple:
- Anonymous2 years agoNot applicable
HI ntimmerman,
I think these times may also include the spend on initialize components and resource. (I test a table with more columns and records, and they haven't spent much more time than the small table)
For your scenario, I'd like to suggest you use other functions to handle import data and initialize delta table steps, and you can use 'DeltaTable' function to handle complex records compare and merge operations.(at these ranges, 'DeltaTable' function has better performance than other functions )Regards,
Xiaoxin Sheng
- ntimmerman2 years agoHelper I
Hi Anonymous , thanks for your quick reply! That's greatly appreciated! Can you elaborate a bit on what other functions are available which would have better performance for those small tables?
Thanks
- Anonymous2 years agoNot applicable
Hi ntimmerman,
In fact, I think this cost of processing almost upper to limit and changing to use other functions may not obviously improve the performance when you operate with small tables.
For optimized on the fabric notebook performance, you can take a look at the following document if it helps:Delta Lake table optimization and V-Order - Microsoft Fabric | Microsoft Learn
Regards,
Xiaoxin Sheng