You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can review for the available collections and databases by querying `documentdb_api_catalog.collections`.
174
+
We can review for the available collections and databases by querying [documentdb_api.list_collections_cursor_first_page](https://github.com/microsoft/documentdb/wiki/Functions#list_collections_cursor_first_page).
`documentdb_api_catalog.collection_indexes` allows reviewing for the existing indexes on a collection. We can find collection_id from `documentdb_api_catalog.collections`.
180
+
[documentdb_api.list_indexes_cursor_first_page](https://github.com/microsoft/documentdb/wiki/Functions#list_indexes_cursor_first_page) allows reviewing for the existing indexes on a collection. We can find collection_id from `documentdb_api.list_collections_cursor_first_page`.
`ttl` indexes by default gets scheduled through the `pg_cron` scheduler, which could be reviewed by querying the `cron.job` table.
@@ -210,33 +209,33 @@ SELECT * FROM documentdb_api.create_indexes_background('documentdb', '{ "createI
210
209
211
210
#### Drop an Index
212
211
213
-
`DocumentDB` uses the `documentdb_api.drop_indexes` function, which allows you to remove an existing index from a collection. The SQL command demonstrates how to drop the index named `id_ab_1` from the `first_collection` collection of the `documentdb`.
212
+
DocumentDB uses the `documentdb_api.drop_indexes` function, which allows you to remove an existing index from a collection. The SQL command demonstrates how to drop the index named `id_ab_1` from the `first_collection` collection of the `documentdb`.
DocumentDB provides the `documentdb_api_catalog.bson_aggregation_pipeline` function, for performing aggregations over the document store.
220
+
DocumentDB provides the [documentdb_api.aggregate_cursor_first_page](https://github.com/microsoft/documentdb/wiki/Functions#aggregate_cursor_first_page) function, for performing aggregations over the document store.
222
221
223
222
The example projects an aggregation on number of patients registered over the years.
This query performs an aggregation on the `patient` collection to group documents by `registration_year`. It collects unique patient conditions for each registration year using the `$addToSet` operator.
0 commit comments