Programmer's reference for Firestore Writer
Firestore connection profile properties
property | type | default value | notes |
|---|---|---|---|
Authentication Type | Enum | SCRAM | The mechanism used to authenticate to the Firestore database. Valid values are The |
Connection URL | String | Copy the connection string from your Google Cloud Firestore console (Connect > SCRAM) and use it here. Do not modify or replace any placeholders in the connection string; Striim handles the credentials securely when establishing the connection. Use the SCRAM-tab connection string for all authentication types, including Service Account Key and Application Default. The connection string is in MongoDB URI format, for example | |
Username | String | The username of the Firestore database user, used when Authentication Type is SCRAM. You may supply the username here or as part of the Connection URL. | |
Password | Encrypted password | The password of the Firestore database user, used when Authentication Type is SCRAM. You may supply the password here or as part of the Connection URL. | |
Service Account Key | String | The path and file name of the .json service account key file downloaded from Google, for example |
Firestore Writer properties
property | type | default value | notes |
|---|---|---|---|
Batch Policy | String | EventCount:1000, Interval:30 | This property defines how much data Striim can accumulate and how much time can pass before Striim sends a batch of data to Firestore. With the default setting, data will be written at least every 30 seconds or when the buffer accumulates 1,000 events. |
Checkpoint Collection | String | Specify a collection (in the format | |
Collections | String | Specify the source-target collection mapping, including any wildcards or key columns, in Striim's standard format, for example | |
Connection Profile Name | String | The name of the Firestore connection profile, in the format | |
Connection Retry Policy | String | retryInterval=60, maxRetries=3 | The retry policy in case of a connection exception: |
Excluded Collections | String | When a wildcard is specified for Collections, you may specify here any collections you wish to exclude, in the same format as Collections, for example | |
Ignorable Exception Code | String | Exceptions to ignore during data write, for example | |
Key Separator | String | : | The delimiter Striim uses when constructing the document key from multiple fields. If the key field values may contain |
Ordered Writes | Boolean | True | Controls whether bulk writes are ordered. With the default value of True, events within a batch are applied in order. |
Overload Retry Policy | String | retryInterval=10, maxRetries=3 | Determines the interval in seconds and the number of attempts the adapter retries when Firestore returns an Aborted (112) error, which indicates the database is overloaded or the operation conflicted with another. See Understand error codes > Aborted (112) in Google's documentation for more details. |
Parallel Threads | Integer | Enables target parallelism for initial load only. | |
Upsert Mode | Boolean | False | Set to True to process inserts and updates as upserts. |
Firestore Writer operation and event type handling
Firestore Writer handles database operations (insert, update, delete) and the various Striim event types the same way as MongoDB Writer.