cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Is it reasonable for the process "Determining the location of DBIO file fragments." to take me 7 hours?

Dicer
Valued Contributor

I only have 1000 columns. Each column has 252 rows, so there are only 252000 data points.

How come it can route tasks for the best-cached locality for 7 hours?

5 REPLIES 5

Kaniz
Community Manager
Community Manager

Hi @Cheuk Hin Christophe Poon​, Can you please run this command and check again?

%sql Optimize [table name]

Dicer
Valued Contributor

I tried the following one and it still took more than 10 hours until Fatal error: The Python kernel is unresponsive.

%sql
 
--Enable Auto Optimization
set spark.databricks.delta.properties.defaults.autoOptimize.optimizeWrite = true;
set spark.databricks.delta.properties.defaults.autoOptimize.autoCompact = true;

Dicer
Valued Contributor

@Kaniz Fatma​ Is there any way to shorten the process "Determining the location of DBIO file fragments." runtime?

Anonymous
Not applicable

Hi @Cheuk Hin Christophe Poon​ 

Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help. 

We'd love to hear from you.

Thanks!

Noopur_Nigam
Valued Contributor II
Valued Contributor II

Hi @Cheuk Hin Christophe Poon​ have you optimize your table anytime since it's creation? If not, then optimize may take some time depending on the no of underlying files.

Please try to run optimize manually as described in below document:

https://docs.databricks.com/sql/language-manual/delta-optimize.html

If this doesn't help, you can try disabling DBIO cache by setting below in your notebook:

spark.conf.set("spark.databricks.io.cache.enabled", "false")

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!