Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Bigquery support triggers?

We are currently using AWS RDS as our databases. In tables, we defined some insert or update triggers on tables. I would like to know if Bigquery also support triggers?

thanks

like image 408
user3878636 Avatar asked Feb 26 '18 16:02

user3878636


People also ask

What is BigQuery not good for?

However, despite its unique advantages and powerful features, BigQuery is not a silver bullet. It is not recommended to use it on data that changes too often and, due to its storage location bound to Google's own services and processing limitations it's best not to use it as a primary data storage.

What three triggers are available on GCP?

Triggers supported in Cloud Functions (1st gen) Event triggers: Pub/Sub triggers. Cloud Storage triggers. Firestore triggers.

Does BigQuery support ACID transactions?

All table modifications in BigQuery, including DML operations, queries with destination tables, and load jobs are ACID-compliant.


2 Answers

BigQuery is a data warehouse product, similar to AWS Redshift and AWS Athena and there is no trigger support.

If you used AWS RDS so far, you need to check Google CloudSQL.

Google Cloud SQL is an easy-to-use service that delivers fully managed SQL databases in the cloud. Google Cloud SQL provides either MySQL or PostgreSQL databases.

If you have a heavy load, then check out Google Cloud Spanner it's even better for full scalable relational db.

Cloud Spanner is the only enterprise-grade, globally-distributed, and strongly consistent database service built for the cloud specifically to combine the benefits of relational database structure with non-relational horizontal scale.

like image 101
Pentium10 Avatar answered Oct 20 '22 05:10

Pentium10


Big Query doesn't have the feature as stated by the colleague above. However it has an event api based on it's audit logs. You can inspect it and trigger events with cloud functions as per: https://cloud.google.com/blog/topics/developers-practitioners/how-trigger-cloud-run-actions-bigquery-events

Regards

like image 34
Vítor Avatar answered Oct 20 '22 05:10

Vítor