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:
@@ -135,7 +135,7 @@ describe('ProtectedFields', function () {
|
||||
describe('using the pointer-permission variant', () => {
|
||||
let user1, user2;
|
||||
beforeEach(async () => {
|
||||
Config.get(Parse.applicationId).database.schemaCache.clear();
|
||||
Config.get(Parse.applicationId).schemaCache.clear();
|
||||
user1 = await Parse.User.signUp('user1', 'password');
|
||||
user2 = await Parse.User.signUp('user2', 'password');
|
||||
await Parse.User.logOut();
|
||||
@@ -752,7 +752,7 @@ describe('ProtectedFields', function () {
|
||||
let object;
|
||||
|
||||
async function initialize() {
|
||||
await Config.get(Parse.applicationId).database.schemaCache.clear();
|
||||
await Config.get(Parse.applicationId).schemaCache.clear();
|
||||
|
||||
object = new Parse.Object(className);
|
||||
|
||||
@@ -815,7 +815,7 @@ describe('ProtectedFields', function () {
|
||||
let obj1;
|
||||
|
||||
async function initialize() {
|
||||
await Config.get(Parse.applicationId).database.schemaCache.clear();
|
||||
await Config.get(Parse.applicationId).schemaCache.clear();
|
||||
|
||||
obj1 = new Parse.Object(className);
|
||||
|
||||
@@ -924,7 +924,7 @@ describe('ProtectedFields', function () {
|
||||
let obj2;
|
||||
|
||||
async function initialize() {
|
||||
await Config.get(Parse.applicationId).database.schemaCache.clear();
|
||||
await Config.get(Parse.applicationId).schemaCache.clear();
|
||||
|
||||
await Parse.User.logOut();
|
||||
|
||||
@@ -1125,7 +1125,7 @@ describe('ProtectedFields', function () {
|
||||
let obj2;
|
||||
|
||||
async function initialize() {
|
||||
await Config.get(Parse.applicationId).database.schemaCache.clear();
|
||||
await Config.get(Parse.applicationId).schemaCache.clear();
|
||||
|
||||
[user1, user2] = await Promise.all([createUser('user1'), createUser('user2')]);
|
||||
|
||||
@@ -1477,7 +1477,7 @@ describe('ProtectedFields', function () {
|
||||
* Clear cache, create user and object, login user and setup rest headers with token
|
||||
*/
|
||||
async function initialize() {
|
||||
await Config.get(Parse.applicationId).database.schemaCache.clear();
|
||||
await Config.get(Parse.applicationId).schemaCache.clear();
|
||||
|
||||
user1 = await createUser('user1');
|
||||
user1 = await logIn(user1);
|
||||
|
||||
Reference in New Issue
Block a user