Reduce attachment migration batch size to 1

This prevents ‘Maximum IPC message size exceeded’ due to IDB `getAll` operation.

- https://github.com/zincbase/zincdb/issues/17
- https://cs.chromium.org/chromium/src/content/browser/indexed_db/indexed_db_database.cc?q=%22Maximum+IPC+message+size+exceeded%22&sq=package:chromium&l=1160
This commit is contained in:
Daniel Gasienica 2018-03-28 18:14:26 -04:00
parent ce8fd3d847
commit 30037e5308

View file

@ -19,7 +19,7 @@ const { deferredToPromise } = require('./deferred_to_promise');
const MESSAGES_STORE_NAME = 'messages';
const NUM_MESSAGES_PER_BATCH = 50;
const NUM_MESSAGES_PER_BATCH = 1;
exports.processNext = async ({
BackboneMessage,