diff --git a/firestore-bigquery-export/README.md b/firestore-bigquery-export/README.md index d70627e425..b1a0c4e077 100644 --- a/firestore-bigquery-export/README.md +++ b/firestore-bigquery-export/README.md @@ -139,6 +139,14 @@ To install an extension, your project must be on the [Blaze (pay as you go) plan * Use new query syntax for snapshots: If enabled, snapshots will be generated with the new query syntax, which should be more performant, and avoid potential resource limitations. +* Import existing Firestore documents into BigQuery?: Do you want to import existing documents from your Firestore collection into BigQuery? These documents will have each have a special changelog with the operation of `IMPORT` and the timestamp of epoch. This ensures that any operation on an imported document supersedes the import record. + +* Existing documents collection: What is the path of the the Cloud Firestore Collection you would like to import from? (This may, or may not, be the same Collection for which you plan to mirror changes.) If you want to use a collectionGroup query, provide the collection name value here, and set 'Use Collection Group query' to true. + +* Use Collection Group query: Do you want to use a [collection group](https://firebase.google.com/docs/firestore/query-data/queries#collection-group-query) query for importing existing documents? Warning: A collectionGroup query will target every collection in your Firestore project that matches the 'Existing documents collection'. For example, if you have 10,000 documents with a sub-collection named: landmarks, this will query every document in 10,000 landmarks collections. + +* Docs per backfill: When importing existing documents, how many should be imported at once? The default value of 200 should be ok for most users. If you are using a transform function or have very large documents, you may need to set this to a lower number. If the lifecycle event function times out, lower this value. + * Cloud KMS key name: Instead of Google managing the key encryption keys that protect your data, you control and manage key encryption keys in Cloud KMS. If this parameter is set, the extension will specify the KMS key name when creating the BQ table. See the PREINSTALL.md for more details. @@ -147,8 +155,12 @@ To install an extension, your project must be on the [Blaze (pay as you go) plan * **fsexportbigquery:** Listens for document changes in your specified Cloud Firestore collection, then exports the changes into BigQuery. +* **fsimportexistingdocs:** Imports exisitng documents from the specified collection into BigQuery. Imported documents will have a special changelog with the operation of `IMPORT` and the timestamp of epoch. + * **syncBigQuery:** A task-triggered function that gets called on BigQuery sync +* **initBigQuerySync:** Runs configuration for sycning with BigQuery + * **setupBigQuerySync:** Runs configuration for sycning with BigQuery diff --git a/firestore-bigquery-export/functions/package.json b/firestore-bigquery-export/functions/package.json index c1af64e7fc..776f8216a8 100644 --- a/firestore-bigquery-export/functions/package.json +++ b/firestore-bigquery-export/functions/package.json @@ -13,7 +13,7 @@ "author": "Jan Wyszynski ", "license": "Apache-2.0", "dependencies": { - "@firebaseextensions/firestore-bigquery-change-tracker": "^1.1.28", + "@firebaseextensions/firestore-bigquery-change-tracker": "^1.1.27", "@google-cloud/bigquery": "^4.7.0", "@types/chai": "^4.1.6", "@types/express-serve-static-core": "4.17.30",