Skip to content

Commit 5ab3ee7

Browse files
update to ${param:TABLE_ID}_raw_changelog; add info about subcollection groups
1 parent 206c70d commit 5ab3ee7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

firestore-bigquery-export/POSTINSTALL.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ You can test out this extension right away:
1313
1. Query your **raw changelog table**, which should contain a single log of creating the `bigquery-mirror-test` document.
1414

1515
```
16-
SELECT * FROM `${param:PROJECT_ID}.${param:DATASET_ID}.${param:COLLECTION_PATH}_raw_changelog`
16+
SELECT * FROM `${param:PROJECT_ID}.${param:DATASET_ID}.${param:TABLE_ID}_raw_changelog`
1717
```
1818
1919
1. Query your **latest view**, which should return the latest change event for the only document present -- `bigquery-mirror-test`.
@@ -28,7 +28,7 @@ The `bigquery-mirror-test` document will disappear from the **latest view** and
2828
1. You can check the changelogs of a single document with this query:
2929
3030
```
31-
SELECT * FROM `${param:PROJECT_ID}.${param:DATASET_ID}.${param:COLLECTION_PATH}_raw_changelog`
31+
SELECT * FROM `${param:PROJECT_ID}.${param:DATASET_ID}.${param:TABLE_ID}_raw_changelog`
3232
WHERE document_name = "bigquery-mirror-test"
3333
ORDER BY TIMESTAMP ASC
3434
```
@@ -37,12 +37,12 @@ The `bigquery-mirror-test` document will disappear from the **latest view** and
3737
3838
Whenever a document is created, updated, imported, or deleted in the specified collection, this extension sends that update to BigQuery. You can then run queries on this mirrored dataset which contains the following resources:
3939
40-
+ **raw changelog table:** [`${param:DATASET_ID}_raw_changelog`](https://console.cloud.google.com/bigquery?project=${param:PROJECT_ID}&p=${param:PROJECT_ID}&d=${param:DATASET_ID}&t=${param:COLLECTION_PATH}_raw_changelog&page=table)
40+
+ **raw changelog table:** [`${param:TABLE_ID}_raw_changelog`](https://console.cloud.google.com/bigquery?project=${param:PROJECT_ID}&p=${param:PROJECT_ID}&d=${param:DATASET_ID}&t=${param:TABLE_ID}_raw_changelog&page=table)
4141
+ **latest view:** [`${param:DATASET_ID}_raw_latest`](https://console.cloud.google.com/bigquery?project=${param:PROJECT_ID}&p=${param:PROJECT_ID}&d=${param:DATASET_ID}&t=${param:COLLECTION_PATH}_raw_latest&page=table)
4242
4343
To review the schema for these two resources, click the **Schema** tab for each resource in BigQuery.
4444
45-
Note that this extension only listens for _document_ changes in the collection, but not changes in any _subcollection_. You can, though, install additional instances of this extension to specifically listen to a subcollection or other collections in your database.
45+
Note that this extension only listens for _document_ changes in the collection, but not changes in any _subcollection_. You can, though, install additional instances of this extension to specifically listen to a subcollection or other collections in your database. Or if you have the same subcollection across documents in a given collection, you can use `{wildcard}` notation to listen to all those subcollections (for example: `chats/{chatid}/posts`).
4646
4747
### _(Optional)_ Import existing documents
4848

0 commit comments

Comments
 (0)