Skip to content

Commit 9240ce5

Browse files
authored
Update src/Options/index.js
Signed-off-by: Manuel <[email protected]>
1 parent 963dcdd commit 9240ce5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Options/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ export interface DatabaseOptions {
548548
/* Enables database real-time hooks to update single schema cache. Set to `true` if using multiple Parse Servers instances connected to the same database. Failing to do so will cause a schema change to not propagate to all instances and re-syncing will only happen when the instances restart. To use this feature with MongoDB, a replica set cluster with [change stream](https://docs.mongodb.com/manual/changeStreams/#availability) support is required.
549549
:DEFAULT: false */
550550
enableSchemaHooks: ?boolean;
551-
/* The TTL for caching the schema for optimizing read/write operations. You should put a long TTL when your DB is in production */
551+
/* The duration in seconds after which the schema cache expires and will be refetched from the database. Use this option if using multiple Parse Servers instances connected to the same database. A low duration will cause the schema cache to be updated too often, causing unnecessary database reads. A high duration will cause the schema to be updated too rarely, increasing the time required until schema changes propagate to all server instances. This feature can be used as an alternative or in conjunction with the option `enableSchemaHooks`. By default this option is disabled and the schema cache never expires. */
552552
schemaCacheTtl: ?number;
553553
}
554554

0 commit comments

Comments
 (0)