can I denormalize multiple large tables in bigquery

三世轮回 提交于 2019-12-12 03:47:21

问题


Can I denormalize (by joining) multiple large tables in bigquery?

Table1 is 400M rows Table2 is 2M rows Table3 is 800K rows

If not, do I have to do it in my relational database before I upload? That would be a difficult solution.

Should I chunk the tables into smaller pieces and run iterations of joins over the tables so that it is always large to small? This would also be a difficult solution.

Thank you.


回答1:


BigQuery now supports "Big JOINs" which allows you skip the LIMIT's in your JOIN queries.

Docs here: https://developers.google.com/bigquery/docs/query-reference#joins




回答2:


Yes you can make new tables based on query results.

Try to look here:

https://developers.google.com/bigquery/docs/queries

and here:

https://developers.google.com/bigquery/docs/tables#addmoredata



来源:https://stackoverflow.com/questions/15287166/can-i-denormalize-multiple-large-tables-in-bigquery

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!