Last active
May 17, 2016 08:03
-
-
Save YumaInaura/029245db965b77415c90f20e8292d568 to your computer and use it in GitHub Desktop.
BigQuery | JOIN EACH を複数使うとメチャクチャ重い問題 ref: http://qiita.com/Yinaura/items/13cc2b206921efd7172b
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
* | |
FROM | |
dataset.table1 AS table1 | |
JOIN | |
dataset.table2 AS table2 | |
ON | |
table1.id = table2.id | |
JOIN | |
dataset.table3 AS table3 | |
ON | |
table2.category = table3.category |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
* | |
FROM | |
dataset.table1 AS table1 | |
JOIN EACH | |
dataset.table2 AS table2 | |
ON | |
table1.id = table2.id | |
JOIN EACH | |
dataset.table3 AS table3 | |
ON | |
table2.category = table3.category |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
* | |
FROM | |
dataset.table1 AS table1 | |
JOIN EACH | |
dataset.table2 AS table2 | |
ON | |
table1.id = table2.id | |
JOIN EACH | |
dataset.table3 AS table3 | |
ON | |
table2.category = table3.category |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment