<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic What fields should I Zorder by? Does the order of Zorder matter? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/what-fields-should-i-zorder-by-does-the-order-of-zorder-matter/m-p/22304#M15261</link>
    <description />
    <pubDate>Fri, 18 Jun 2021 21:18:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-06-18T21:18:04Z</dc:date>
    <item>
      <title>What fields should I Zorder by? Does the order of Zorder matter?</title>
      <link>https://community.databricks.com/t5/data-engineering/what-fields-should-i-zorder-by-does-the-order-of-zorder-matter/m-p/22304#M15261</link>
      <description />
      <pubDate>Fri, 18 Jun 2021 21:18:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/what-fields-should-i-zorder-by-does-the-order-of-zorder-matter/m-p/22304#M15261</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-18T21:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: What fields should I Zorder by? Does the order of Zorder matter?</title>
      <link>https://community.databricks.com/t5/data-engineering/what-fields-should-i-zorder-by-does-the-order-of-zorder-matter/m-p/22305#M15262</link>
      <description>&lt;P&gt;If you expect a column to be commonly used in query predicates and if that column has high cardinality (that is, a large number of distinct values), then use&amp;nbsp;&lt;/P&gt;&lt;P&gt;ZORDER&amp;nbsp;BY&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;You can specify multiple columns for&amp;nbsp;&lt;/P&gt;&lt;P&gt;ZORDER&amp;nbsp;BY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;as a comma-separated list. However, the effectiveness of the locality drops with each additional column. Z-Ordering on columns that do not have statistics collected on them would be ineffective and a waste of resources as data skipping requires column-local stats such as min, max, and count. You can configure statistics collection on certain columns by re-ordering columns in the schema or increasing the number of columns to collect statistics on. See the section&amp;nbsp;&lt;A href="https://docs.databricks.com/delta/optimizations/file-mgmt.html#delta-data-skipping" alt="https://docs.databricks.com/delta/optimizations/file-mgmt.html#delta-data-skipping" target="_blank"&gt;Data skipping&lt;/A&gt;&amp;nbsp;for more details.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 12:51:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/what-fields-should-i-zorder-by-does-the-order-of-zorder-matter/m-p/22305#M15262</guid>
      <dc:creator>User16826994223</dc:creator>
      <dc:date>2021-06-21T12:51:45Z</dc:date>
    </item>
  </channel>
</rss>

