BigQuery
Stream form answers into Google BigQuery.
The Google BigQuery integration uses the BigQuery streaming API to insert answers into a BigQuery table, as they are received.
BiqQuery billing
The BigQuery streaming API is not available in the Google Cloud's free tier. See pricing.
Authentication
BigQuery is authenticated using a service account. Once a service account is created, export the credentials as a keyfile, and upload the keyfile to Formsort.
Note that the service account needs the minimum permissions necessary to have the ability to write data into the user-created table, such as the bigquery.dataEditor predefined role.
Frequency
The frequency of inserting a row to BigQuery can be configured as:
On Finalize: only at the end of the flow.
On Savepoint: after each step marked as save point, and at the end of the flow.
Every step: at the end of each step (when the responder advances using the Next button), and at the end of the flow.
Debounced: when the responder abandons the flow after a period of inactivity, and at the end of the flow. Formsort recommends using this setting to reduce the load.
Security
Formsort backend system will exclusively connect to BigQuery from the static IP 18.217.92.196
.
Table schema
We take your security seriously, and require only the minimum permissions necessary to write to your BQ table (see Authentication). Because of this, you must create the table to which Formsort can write - Formsort will not create the table automatically.
Since the schema of a form flow can change between different deployments, as new questions are added and removed, the schema for writing to a BigQuery table has a repeated answers
field that stores the answer values received.
Schema definition in JSON
To create the table within the BigQuery console, we recommend you copy-paste the following JSON schema using the Edit as text toggle:
Schema definition in python
Adding multiple BigQuery instances
There is an option to send answer payloads to multiple BigQuery destinations. This is useful if you'd like to share your data across multiple endpoints, or have payloads that are sent at different submission frequencies go to different destinations.
To enable multiple destinations, first complete setup for an initial destination (Destination 1). Then, click the "+ Add destination" button. Up to 3 instances can be added.
Once you've finished configuring all instances of your BigQuery integrations, be sure to Save your work with the button in the top right corner.
If you have deployed flows previous to integrating with or updating your BigQuery integration, it is advisable to re-deploy those flows.
Last updated