Skip to content

Instantly share code, notes, and snippets.

@dsschneidermann
Created October 31, 2020 11:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dsschneidermann/952f9160d5ce08aa69908b0862dcb5c6 to your computer and use it in GitHub Desktop.
Save dsschneidermann/952f9160d5ce08aa69908b0862dcb5c6 to your computer and use it in GitHub Desktop.
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = () => ({
_rid: "cosmosdb",
_self: "",
_dbs: "//dbs/",
id: "cosmosdb",
media: "//media/",
addresses: "//addresses/",
writableLocations: [
{
name: "Global",
databaseAccountEndpoint: `https://cosmosdb:3000/`
}
],
readableLocations: [
{
name: "Global",
databaseAccountEndpoint: `https://cosmosdb:3000/`
}
],
enableMultipleWriteLocations: false,
userReplicationPolicy: {
asyncReplication: false,
minReplicaSetSize: 1,
maxReplicasetSize: 4
},
userConsistencyPolicy: {
defaultConsistencyLevel: "Strong" // NB: Changed from "Session"
},
systemReplicationPolicy: {
minReplicaSetSize: 1,
maxReplicasetSize: 4
},
readPolicy: {
primaryReadCoefficient: 1,
secondaryReadCoefficient: 1
},
queryEngineConfiguration: '{"maxSqlQueryInputLength":262144,"maxJoinsPerSqlQuery":5,"maxLogicalAndPerSqlQuery":500,"maxLogicalOrPerSqlQuery":500,"maxUdfRefPerSqlQuery":10,"maxInExpressionItemsCount":16000,"queryMaxInMemorySortDocumentCount":500,"maxQueryRequestTimeoutFraction":0.9,"sqlAllowNonFiniteNumbers":false,"sqlAllowAggregateFunctions":true,"sqlAllowSubQuery":true,"sqlAllowScalarSubQuery":true,"allowNewKeywords":true,"sqlAllowLike":false,"maxSpatialQueryCells":12,"spatialMaxGeometryPointCount":256,"sqlAllowTop":true,"enableSpatialIndexing":true}'
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment