SlideShare a Scribd company logo
1 of 20
1
1
BigQuery Clustering
Explored
Date
11 Aug 2023
Sadeka Islam
2
We unlock the power of data to reimagine retail
Contents
Clustering 03
When to apply clustering 04
How to apply clustering 05
Scenario 1 07
Scenario 2 10
Limitations 17
Click to add footnotes
3
We unlock the power of data to reimagine retail
● Purpose: Limits the amount of data that needs to be read while executing a query.
● Benefits
○ Improved query performance when filtering (WHERE or JOIN) or aggregation (GROUP BY) by clustered
columns
○ Reduced cost when filtering or aggregation by clustered columns
● How?
○ Sorts storage blocks based on the values of the clustered columns.
○ Useful when the clustered columns have high cardinality.
○ Scans only the relevant blocks of clustered columns as specified by the filter or group by clause.
○ No accurate query cost estimate before running the query.
Clustering
Click to add footnotes
4
We unlock the power of data to reimagine retail
● Queries commonly filter on particular columns
● Filtered columns have high cardinality (many distinct values)
When to apply clustering?
Click to add footnotes
5
We unlock the power of data to reimagine retail
● Clustered column types
○ STRING, INT64, NUMERIC, BIGNUMERIC, DATE, DATETIME, TIMESTAMP, BOOL, GEOGRAPHY
● Clustered column order is important
○ Query filter order must match the clustered column order
○ The first clustered column must be included in the query filter.
How to apply clustering?
Click to add footnotes
6
We unlock the power of data to reimagine retail
CREATE TABLE `gcp-wow-wiq-dclo-test.sql_tuning.stackoverflow_posts_cluster_creation_date_view_count`
(
id INTEGER,
title STRING,
answer_count INTEGER,
creation_date TIMESTAMP,
view_count INTEGER
)
CLUSTER BY
creation_date,
view_count;
How to create a clustered table?
Click to add footnotes
7
We unlock the power of data to reimagine retail
Select the
- ID
- Title
- Answer count
of Stackoverflow posts
Where the creation date is between 01 Oct 2008 and 01 Dec 2008.
Scenario 1
Click to add footnotes
8
We unlock the power of data to reimagine retail
56 seconds
Slot time consumed
Query performance without clustering
Click to add footnotes
9
We unlock the power of data to reimagine retail
27 seconds
Slot time consumed
Query performance with clustering
(creation date as clustered column)
Click to add footnotes
Clustering improves performance by 2X
10
We unlock the power of data to reimagine retail
Select the
- ID
- Title
- Answer count
of Stackoverflow posts
Where the creation date is between 01 Oct 2008 and 01 Dec 2008
and view count >= 100.
Scenario 2
Click to add footnotes
11
We unlock the power of data to reimagine retail
1 minute 9 seconds
Slot time consumed
Query performance without clustering
Click to add footnotes
12
We unlock the power of data to reimagine retail
21 seconds
Slot time consumed
Query performance with clustering
(creation date as clustered column)
Click to add footnotes
Clustering by the first filter column
improves performance by 3X
13
We unlock the power of data to reimagine retail
574 milliseconds
Slot time consumed
Query performance with clustering
(creation date, view count as clustered columns)
Click to add footnotes
Clustering by the both filter columns
improves performance by 120X
14
We unlock the power of data to reimagine retail
15 seconds(worse)
Slot time consumed
Query performance with clustering - reverse filtering order
(creation date, view count as clustered columns)
Click to add footnotes
Reverse order of the clustered columns
in the query filter does not yield optimal
performance.
15
We unlock the power of data to reimagine retail
2 minutes 45 seconds (not optimal)
Slot time consumed
Query performance with clustering - filter by view count only
(creation date, view count as clustered columns)
Click to add footnotes
Excluding the first clustered column
in the query filter does not yield
optimal performance.
16
We unlock the power of data to reimagine retail
4 minutes 38 seconds
Slot time consumed
Query performance without clustering - filter by view count only
Click to add footnotes
17
We unlock the power of data to reimagine retail
2 minutes 29 seconds (optimal)
Slot time consumed
Query performance with clustering - filter by view count only
(view count as clustered column)
Click to add footnotes
Including view_count clustered
column in the query filter yields
optimal performance.
18
We unlock the power of data to reimagine retail
● Only Google SQL is supported.
● At most 4 clustered columns per table.
● When clustering by the STRING type column, only the first 1024 characters are used for clustering.
● When clustering an table with existing data, the existing data is not clustered; only new data is clustered
and is subject to automatic reclustering.
Limitations
Click to add footnotes
19
We unlock the power of data to reimagine retail
1. Introduction to Clustered tables
2. Create and use clustered tables
References
Click to add footnotes
20
20
20
20
Thank you

More Related Content

Similar to BigQuery Clustering Explored (1).pptx

02 database oprimization - improving sql performance - ent-db
02  database oprimization - improving sql performance - ent-db02  database oprimization - improving sql performance - ent-db
02 database oprimization - improving sql performance - ent-db
uncleRhyme
 
Column store indexes and batch processing mode (nx power lite)
Column store indexes and batch processing mode (nx power lite)Column store indexes and batch processing mode (nx power lite)
Column store indexes and batch processing mode (nx power lite)
Chris Adkin
 
See sql server graphical execution plans in action tech republic
See sql server graphical execution plans in action   tech republicSee sql server graphical execution plans in action   tech republic
See sql server graphical execution plans in action tech republic
Kaing Menglieng
 

Similar to BigQuery Clustering Explored (1).pptx (20)

Our Story With ClickHouse at seo.do
Our Story With ClickHouse at seo.doOur Story With ClickHouse at seo.do
Our Story With ClickHouse at seo.do
 
MySQL Performance Optimization
MySQL Performance OptimizationMySQL Performance Optimization
MySQL Performance Optimization
 
Extreme SSAS - Part II
Extreme SSAS - Part IIExtreme SSAS - Part II
Extreme SSAS - Part II
 
PostgreSQL Table Partitioning / Sharding
PostgreSQL Table Partitioning / ShardingPostgreSQL Table Partitioning / Sharding
PostgreSQL Table Partitioning / Sharding
 
02 database oprimization - improving sql performance - ent-db
02  database oprimization - improving sql performance - ent-db02  database oprimization - improving sql performance - ent-db
02 database oprimization - improving sql performance - ent-db
 
MySQL Indexing : Improving Query Performance Using Index (Covering Index)
MySQL Indexing : Improving Query Performance Using Index (Covering Index)MySQL Indexing : Improving Query Performance Using Index (Covering Index)
MySQL Indexing : Improving Query Performance Using Index (Covering Index)
 
Getting started with Laravel & Elasticsearch
Getting started with Laravel & ElasticsearchGetting started with Laravel & Elasticsearch
Getting started with Laravel & Elasticsearch
 
What's New in MariaDB Server 10.2 and MariaDB MaxScale 2.1
What's New in MariaDB Server 10.2 and MariaDB MaxScale 2.1What's New in MariaDB Server 10.2 and MariaDB MaxScale 2.1
What's New in MariaDB Server 10.2 and MariaDB MaxScale 2.1
 
What's New in MariaDB Server 10.2 and MariaDB MaxScale 2.1
What's New in MariaDB Server 10.2 and MariaDB MaxScale 2.1What's New in MariaDB Server 10.2 and MariaDB MaxScale 2.1
What's New in MariaDB Server 10.2 and MariaDB MaxScale 2.1
 
Column store indexes and batch processing mode (nx power lite)
Column store indexes and batch processing mode (nx power lite)Column store indexes and batch processing mode (nx power lite)
Column store indexes and batch processing mode (nx power lite)
 
See sql server graphical execution plans in action tech republic
See sql server graphical execution plans in action   tech republicSee sql server graphical execution plans in action   tech republic
See sql server graphical execution plans in action tech republic
 
Columnstore improvements in SQL Server 2016
Columnstore improvements in SQL Server 2016Columnstore improvements in SQL Server 2016
Columnstore improvements in SQL Server 2016
 
Time series in MongoDB - Mydbops
Time series in MongoDB - Mydbops Time series in MongoDB - Mydbops
Time series in MongoDB - Mydbops
 
Ssis partitioning and best practices
Ssis partitioning and best practicesSsis partitioning and best practices
Ssis partitioning and best practices
 
Imply at Apache Druid Meetup in London 1-15-20
Imply at Apache Druid Meetup in London 1-15-20Imply at Apache Druid Meetup in London 1-15-20
Imply at Apache Druid Meetup in London 1-15-20
 
Masterclass - Redshift
Masterclass - RedshiftMasterclass - Redshift
Masterclass - Redshift
 
PHP UK 2020 Tutorial: MySQL Indexes, Histograms And other ways To Speed Up Yo...
PHP UK 2020 Tutorial: MySQL Indexes, Histograms And other ways To Speed Up Yo...PHP UK 2020 Tutorial: MySQL Indexes, Histograms And other ways To Speed Up Yo...
PHP UK 2020 Tutorial: MySQL Indexes, Histograms And other ways To Speed Up Yo...
 
Apache Spark 3.0: Overview of What’s New and Why Care
Apache Spark 3.0: Overview of What’s New and Why CareApache Spark 3.0: Overview of What’s New and Why Care
Apache Spark 3.0: Overview of What’s New and Why Care
 
Performance Tuning
Performance TuningPerformance Tuning
Performance Tuning
 
Include or not include? A fairy tale about indexes
Include or not include? A fairy tale about indexesInclude or not include? A fairy tale about indexes
Include or not include? A fairy tale about indexes
 

Recently uploaded

Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdf
MarinCaroMartnezBerg
 
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
amitlee9823
 
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night StandCall Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
amitlee9823
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
AroojKhan71
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
amitlee9823
 
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get CytotecAbortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
amitlee9823
 
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
amitlee9823
 

Recently uploaded (20)

Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
 
Predicting Loan Approval: A Data Science Project
Predicting Loan Approval: A Data Science ProjectPredicting Loan Approval: A Data Science Project
Predicting Loan Approval: A Data Science Project
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdf
 
Discover Why Less is More in B2B Research
Discover Why Less is More in B2B ResearchDiscover Why Less is More in B2B Research
Discover Why Less is More in B2B Research
 
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
 
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night StandCall Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
 
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
 
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
 
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfAccredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
 
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% SecureCall me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptx
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signals
 
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
 
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get CytotecAbortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
 
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
 
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
 

BigQuery Clustering Explored (1).pptx

  • 2. 2 We unlock the power of data to reimagine retail Contents Clustering 03 When to apply clustering 04 How to apply clustering 05 Scenario 1 07 Scenario 2 10 Limitations 17 Click to add footnotes
  • 3. 3 We unlock the power of data to reimagine retail ● Purpose: Limits the amount of data that needs to be read while executing a query. ● Benefits ○ Improved query performance when filtering (WHERE or JOIN) or aggregation (GROUP BY) by clustered columns ○ Reduced cost when filtering or aggregation by clustered columns ● How? ○ Sorts storage blocks based on the values of the clustered columns. ○ Useful when the clustered columns have high cardinality. ○ Scans only the relevant blocks of clustered columns as specified by the filter or group by clause. ○ No accurate query cost estimate before running the query. Clustering Click to add footnotes
  • 4. 4 We unlock the power of data to reimagine retail ● Queries commonly filter on particular columns ● Filtered columns have high cardinality (many distinct values) When to apply clustering? Click to add footnotes
  • 5. 5 We unlock the power of data to reimagine retail ● Clustered column types ○ STRING, INT64, NUMERIC, BIGNUMERIC, DATE, DATETIME, TIMESTAMP, BOOL, GEOGRAPHY ● Clustered column order is important ○ Query filter order must match the clustered column order ○ The first clustered column must be included in the query filter. How to apply clustering? Click to add footnotes
  • 6. 6 We unlock the power of data to reimagine retail CREATE TABLE `gcp-wow-wiq-dclo-test.sql_tuning.stackoverflow_posts_cluster_creation_date_view_count` ( id INTEGER, title STRING, answer_count INTEGER, creation_date TIMESTAMP, view_count INTEGER ) CLUSTER BY creation_date, view_count; How to create a clustered table? Click to add footnotes
  • 7. 7 We unlock the power of data to reimagine retail Select the - ID - Title - Answer count of Stackoverflow posts Where the creation date is between 01 Oct 2008 and 01 Dec 2008. Scenario 1 Click to add footnotes
  • 8. 8 We unlock the power of data to reimagine retail 56 seconds Slot time consumed Query performance without clustering Click to add footnotes
  • 9. 9 We unlock the power of data to reimagine retail 27 seconds Slot time consumed Query performance with clustering (creation date as clustered column) Click to add footnotes Clustering improves performance by 2X
  • 10. 10 We unlock the power of data to reimagine retail Select the - ID - Title - Answer count of Stackoverflow posts Where the creation date is between 01 Oct 2008 and 01 Dec 2008 and view count >= 100. Scenario 2 Click to add footnotes
  • 11. 11 We unlock the power of data to reimagine retail 1 minute 9 seconds Slot time consumed Query performance without clustering Click to add footnotes
  • 12. 12 We unlock the power of data to reimagine retail 21 seconds Slot time consumed Query performance with clustering (creation date as clustered column) Click to add footnotes Clustering by the first filter column improves performance by 3X
  • 13. 13 We unlock the power of data to reimagine retail 574 milliseconds Slot time consumed Query performance with clustering (creation date, view count as clustered columns) Click to add footnotes Clustering by the both filter columns improves performance by 120X
  • 14. 14 We unlock the power of data to reimagine retail 15 seconds(worse) Slot time consumed Query performance with clustering - reverse filtering order (creation date, view count as clustered columns) Click to add footnotes Reverse order of the clustered columns in the query filter does not yield optimal performance.
  • 15. 15 We unlock the power of data to reimagine retail 2 minutes 45 seconds (not optimal) Slot time consumed Query performance with clustering - filter by view count only (creation date, view count as clustered columns) Click to add footnotes Excluding the first clustered column in the query filter does not yield optimal performance.
  • 16. 16 We unlock the power of data to reimagine retail 4 minutes 38 seconds Slot time consumed Query performance without clustering - filter by view count only Click to add footnotes
  • 17. 17 We unlock the power of data to reimagine retail 2 minutes 29 seconds (optimal) Slot time consumed Query performance with clustering - filter by view count only (view count as clustered column) Click to add footnotes Including view_count clustered column in the query filter yields optimal performance.
  • 18. 18 We unlock the power of data to reimagine retail ● Only Google SQL is supported. ● At most 4 clustered columns per table. ● When clustering by the STRING type column, only the first 1024 characters are used for clustering. ● When clustering an table with existing data, the existing data is not clustered; only new data is clustered and is subject to automatic reclustering. Limitations Click to add footnotes
  • 19. 19 We unlock the power of data to reimagine retail 1. Introduction to Clustered tables 2. Create and use clustered tables References Click to add footnotes