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: 

How to optimize queries on a 150B table? ZORDER, LC or partioning?

oakhill
New Contributor III

Hi!

I am struggling to understand how to properly manage my table to make queries effective. My table has columns date_time_utc, car_id, car_owner etc. date_time_utc, car_id and position is usually the ZORDER or Liquid Clustering-columns.

Selecting max(date_time_utc) from this table to find the latest row can take a very long time.

We (almost) always query by date_time_utc and/or car_id.

I'm hoping for some input on partitioning strategies:

1. Does Liquid Clustering replace partitioning and zorder completely? It doesn't rewrite files as far as I understand.

2. For a 150B rows table, what is an optimal strategy?

1 REPLY 1

szymon_dybczak
Contributor III

1. According to the databricks yes 🙂 But as always, I recommend to perform benchamarks yourself. There a lot of blog posts, that are saying that it's not alway the case. Yesterday, I was at data community event and presenter did several benchmark and he showed in some cases ZORDER performed better than Liquid Clustering. So, take marketing stuff with a pinch of salt 🙂

2. If I were on your place, I would try to benchmark it. Maybe try to use partitioning + ZORDER and compared it  with Liquid Clustering. 

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