Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do joins work in the Cloud Spanner database?

How do joins work in Google's Cloud Spanner database?

Will the join query execute fast? Is there any comparison between SQL(MySql, Oracle, MSSQL) vs NewSQL(Cloud Spanner/TiDB/CockroachDB)?

like image 747
Kumar Siva Avatar asked Mar 06 '26 12:03

Kumar Siva


1 Answers

Cloud Spanner supports inner, cross, full, left, and right joins. Joins are fast, but since Cloud Spanner distributes data across many splits, any time you can restrict a query to fewer splits, the faster the query will be. Cloud Spanner supports interleaving of your data to define parent-child relationships which allows you to effectively prejoin your data for quicker queries.

like image 74
Albert Cui Avatar answered Mar 08 '26 02:03

Albert Cui



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!