Guide to set up BigQuery database connection to auto sync subscriber lists.
+New Connector
button to add the connector.
Selecting OAuth client ID
OAuth consent screen
Use Internal option from the list
Internal
option from the listProvide below details
Creating a role and granting permissions
bigquery.datasets.get bigquery.jobs.create bigquery.jobs.list bigquery.tables.get bigquery.tables.getData bigquery.tables.list1.4. Finally, click on CREATE.
Creating a service account and attaching a role to it
Creating and downloading the JSON key
{{last_sync_time}}
to limit query results: Make sure you use the {{last_sync_time}}
variable in your recurring sync queries. It stores the timestamp of last successful sync in your list. Adding it in your where statement against datetime index can really speed up the query and limit the number of results returned in consecutive syncs. {{last_sync_time}}
is stored in timestamp format. Use relevant cast expression to format it based on your column type.Ignored
status in the logs. Frequently skipped operations may indicate that you’re syncing too often. You should monitor your first few syncs to ensure that you haven’t impacted your system’s performance.