Improve single schema cache (#7214)
* Initial Commit * fix flaky test * temporary set ci timeout * turn off ci check * fix postgres tests * fix tests * node flaky test * remove improvements * Update SchemaPerformance.spec.js * fix tests * revert ci * Create Singleton Object * properly clear cache testing * Cleanup * remove fit * try PushController.spec * try push test rewrite * try push enqueue time * Increase test timeout * remove pg server creation test * xit push tests * more xit * remove skipped tests * Fix conflicts * reduce ci timeout * fix push tests * Revert "fix push tests" This reverts commit 05aba62f1cbbca7d5d3e80b9444529f59407cb56. * improve initialization * fix flaky tests * xit flaky test * Update CHANGELOG.md * enable debug logs * Update LogsRouter.spec.js * create initial indexes in series * lint * horizontal scaling documentation * Update Changelog * change horizontalScaling db option * Add enableSchemaHooks option * move enableSchemaHooks to databaseOptions
This commit is contained in:
@@ -63,8 +63,9 @@ export interface ParseServerOptions {
|
||||
/* The full URI to your database. Supported databases are mongodb or postgres.
|
||||
:DEFAULT: mongodb://localhost:27017/parse */
|
||||
databaseURI: string;
|
||||
/* Options to pass to the mongodb client */
|
||||
databaseOptions: ?any;
|
||||
/* Options to pass to the database client
|
||||
:ENV: PARSE_SERVER_DATABASE_OPTIONS */
|
||||
databaseOptions: ?DatabaseOptions;
|
||||
/* Adapter module for the database */
|
||||
databaseAdapter: ?Adapter<StorageAdapter>;
|
||||
/* Full path to your cloud code main.js */
|
||||
@@ -158,9 +159,6 @@ export interface ParseServerOptions {
|
||||
/* When a user changes their password, either through the reset password email or while logged in, all sessions are revoked if this is true. Set to false if you don't want to revoke sessions.
|
||||
:DEFAULT: true */
|
||||
revokeSessionOnPasswordReset: ?boolean;
|
||||
/* 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 5000; set 0 to disable.
|
||||
:DEFAULT: 5000 */
|
||||
schemaCacheTTL: ?number;
|
||||
/* Sets the TTL for the in memory cache (in ms), defaults to 5000 (5 seconds)
|
||||
:DEFAULT: 5000 */
|
||||
cacheTTL: ?number;
|
||||
@@ -171,9 +169,6 @@ export interface ParseServerOptions {
|
||||
:ENV: PARSE_SERVER_ENABLE_EXPERIMENTAL_DIRECT_ACCESS
|
||||
:DEFAULT: false */
|
||||
directAccess: ?boolean;
|
||||
/* 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.
|
||||
:DEFAULT: false */
|
||||
enableSingleSchemaCache: ?boolean;
|
||||
/* Enables the default express error handler for all errors
|
||||
:DEFAULT: false */
|
||||
enableExpressErrorHandler: ?boolean;
|
||||
@@ -416,3 +411,9 @@ export interface FileUploadOptions {
|
||||
:DEFAULT: false */
|
||||
enableForPublic: ?boolean;
|
||||
}
|
||||
|
||||
export interface DatabaseOptions {
|
||||
/* Enables database hooks to update single schema cache. Set to true if using multiple Parse Servers instances connected to the same database.
|
||||
:DEFAULT: false */
|
||||
enableSchemaHooks: ?boolean;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user