25
loading...
This website collects cookies to deliver better user experience
./mongod
to get started. Maybe the developer used apt
to install the package onto an Ubuntu VM or your local computing environment. There are tons of ways to install and start our database server, but the big question is what's next?./mongod
start into a standalone DB, more than likely none of these operational tasks have been handled.{
"type": "Microsoft.DocumentDb/databaseAccounts/mongodbDatabases/collections",
"name": "[concat(variables('accountName'), '/', parameters('databaseName'), '/', parameters('collection1Name'))]",
"apiVersion": "2021-01-15",
"dependsOn": [
"[resourceId('Microsoft.DocumentDB/databaseAccounts/mongodbDatabases', variables('accountName'), parameters('databaseName'))]"
],
"properties": {
"resource": {
"id": "[parameters('collection1Name')]",
"shardKey": {
"user_id": "Hash"
},
"indexes": [
{
"key": {
"keys": [ "_id" ]
}
},
{
"key": {
"keys": [
"$**"
]
}
},
{
"key": {
"keys": [ "user_id", "user_address" ]
},
"options": {
"unique": true
}
},
{
"key": {
"keys": [ "_ts" ],
"options": { "expireAfterSeconds": 2629746 }
}
}
],
"options": {
"If-Match": "<ETag>"
}
}
}
},
{
"type": "Microsoft.DocumentDb/databaseAccounts/mongodbDatabases/collections",
"name": "[concat(variables('accountName'), '/', parameters('databaseName'), '/', parameters('collection2Name'))]",
"apiVersion": "2021-01-15",
"dependsOn": [
"[resourceId('Microsoft.DocumentDB/databaseAccounts/mongodbDatabases', variables('accountName'), parameters('databaseName'))]"
],
"properties": {
"resource": {
"id": "[parameters('collection2Name')]",
"shardKey": {
"company_id": "Hash"
},
"indexes": [
{
"key": {
"keys": [ "_id" ]
}
},
{
"key": {
"keys": [
"$**"
]
}
},
{
"key": {
"keys": [
"company_id",
"company_address"
]
},
"options": {
"unique": true
}
},
{
"key": {
"keys": [ "_ts" ],
"options": { "expireAfterSeconds": 2629746 }
}
}
],