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: 

A way to run OPTIMIZE, VACUUM, ANALYZE on all schemas and tables

vlado101
New Contributor II

Hello everyone,

I am not sure if this was asked, but I am trying to find a way to create one python (or Scala) script that would basically take a list of all the schemas and then run optimize, vacuum, and then analyze tables on them.

I see a lot of websites online where a user has to specify the schema, but is it possible to not have to specify a schema, but instead have the script run daily and optimize tables without specifying it?

https://www.modern-dataengineering.com/post/azure-databricks-how-to-optimize-all-your-tables

The above is the closest that I got to having such a script. 

Has anyone done something similar to above? Any help would be much appreciated. 

0 REPLIES 0

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group