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 II

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?

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