You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add option to re-use schema cache between requests (#2979)
* Add option to reuse database controller between requests. Clear schema cache when deleting everything
* Add test
* Rename setting to persistSchemaCache to more accurately reflect effect
* Repurpose option to determine whether to randomize cache prefix. Restore Config.js controller creation. Add tests
* Fix bug with missing parameter passed to to SchemaCache
* Renaming and formatting
* Fix property name typo
* Rename option to avoid double negative and still be falsey by default. Style fix
Copy file name to clipboardExpand all lines: src/cli/definitions/parse-server.js
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -195,6 +195,11 @@ export default {
195
195
help: "The TTL for caching the schema for optimizing read/write operations. You should put a long TTL when your DB is in production. default to 0; disabled.",
196
196
action: numberParser("schemaCacheTTL"),
197
197
},
198
+
"enableSingleSchemaCache": {
199
+
env: "PARSE_SERVER_ENABLE_SINGLE_SCHEMA_CACHE",
200
+
help: "Use a single schema cache shared across requests. Reduces number of queries made to _SCHEMA. Defaults to false, i.e. unique schema cache per request.",
201
+
action: booleanParser
202
+
},
198
203
"cluster": {
199
204
help: "Run with cluster, optionally set the number of processes default to os.cpus().length",
0 commit comments