1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-08-09 10:22:46 +03:00

Increase the WRITE_DELAY on database syncing

This commit is contained in:
Kegan Dougal
2017-02-17 16:49:49 +00:00
parent 37e507707d
commit d23d5b50a3

View File

@@ -27,7 +27,13 @@ import utils from "../utils";
*/
const VERSION = 1;
const WRITE_DELAY_MS = 1000 * 60; // once a minute
// If this value is too small we'll be writing very often which will cause
// noticable stop-the-world pauses. If this value is too big we'll be writing
// so infrequently that the /sync size gets bigger on reload. Writing more
// often does not affect the length of the pause since the entire /sync
// response is persisted each time.
const WRITE_DELAY_MS = 1000 * 60 * 5; // once every 5 minutes
/**
* Construct a new Indexed Database store backend. This requires a call to