I would like to know if there are any preferred way to insert data into a bigquery table?
I am inserting new rows to a BQ table at the end of a Cloud Composer DAG. I've used a custom operator based on the BigQueryOperator as the following:
INSERT INTO `<project>.<dataset>.<table> (col1,col2,col3)
VALUES
(ccc,ccc,ddd),
(...,...,...)
The values added to the table can be up to 500 rows (...,...,...) but it is generally around 10-100 rows.
Is there a recommended/better way to do this? I don't know if it worth passing by GCS since the "file" containing all the rows won't be big.