Reputation: 67
We need to upload data from our logs to Google BigQuery and we have two subsets of the log data that will not overlap when queried.
We could make only one table with a nullable "vendor_id" field or make two different tables one for each subset. Is there any difference in the performance of these aproaches?
Regards
Leo
Upvotes: 0
Views: 266
Reputation: 26637
There will be little (if any) difference in query performance between the two options you mention. That said, the cost of queries is proportional to the amount of data read, so if you have two separate tables it will likely be less expensive, since each query will read a smaller amount of data.
Upvotes: 2