跳到主要内容

Constant

Predefined constant values for quick input for interfaces.

Name

Value

Type

Description

TTL_SECONDS

collection.ttl.seconds

String

Property key for alterCollection() and createCollection() to set the ttl value.

MMAP_ENABLED

mmap.enabled

String

Property key for alterCollection() and alterIndex() to enable mmap.

DATABASE_REPLICA_NUMBER

database.replica.number

String

Property key for createDatabase() and alterDatabase() to set default replica number.

DATABASE_RESOURCE_GROUPS

database.resource_groups

String

Property key for createDatabase() and alterDatabase() to set default resource groups.

COLLECTION_REPLICA_NUMBER

collection.replica.number

String

Property key for createCollection() and alterCollection() to set default replica number.

COLLECTION_RESOURCE_GROUPS

collection.resource_groups

String

Property key for createCollection() and alterCollection() to set default resource groups.