From cbb4ce2f510655bd55b79a43c22a0bc43f3db04f Mon Sep 17 00:00:00 2001 From: Alessio Gravili <70709113+AlessioGr@users.noreply.github.com> Date: Fri, 10 Nov 2023 16:23:21 +0100 Subject: [PATCH] docs: document disableIndexHints property --- docs/database/mongodb.mdx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/database/mongodb.mdx b/docs/database/mongodb.mdx index 10bb2a033..624fb2beb 100644 --- a/docs/database/mongodb.mdx +++ b/docs/database/mongodb.mdx @@ -33,6 +33,7 @@ export default buildConfig({ | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `autoPluralization` | Tell Mongoose to auto-pluralize any collection names if it encounters any singular words used as collection `slug`s. | | `connectOptions` | Customize MongoDB connection options. Payload will connect to your MongoDB database using default options which you can override and extend to include all the [options](https://mongoosejs.com/docs/connections.html#options) available to mongoose. | +| `disableIndexHints` | Set to true to disable hinting to MongoDB to use 'id' as index. This is currently done when counting documents for pagination, as it increases the speed of the count function used in that query. Disabling this optimization might fix some problems with AWS DocumentDB. Defaults to false | | `migrationDir` | Customize the directory that migrations are stored. | ### Access to Mongoose models @@ -43,4 +44,4 @@ You can access Mongoose models as follows: - Collection models - `payload.db.collections[myCollectionSlug]` - Globals model - `payload.db.globals` -- Versions model (both collections and globals) - `payload.db.versions[myEntitySlug]` \ No newline at end of file +- Versions model (both collections and globals) - `payload.db.versions[myEntitySlug]`