@grouparoo/core
Version:
The Grouparoo Core
21 lines (20 loc) • 1.22 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DEFAULT = void 0;
const namespace = "batchSize";
exports.DEFAULT = {
[namespace]: () => {
var _a, _b, _c, _d;
// prettier-ignore
return {
// How many Imports and should a Run enqueue in each batch before deferring to associate those Imports already enqueued?
imports: parseInt((_a = process.env.GROUPAROO_IMPORTS_BATCH_SIZE) !== null && _a !== void 0 ? _a : "1000"),
// How many Records needing import should we process at once? Affects the query size to sources.
recordProperties: parseInt((_b = process.env.GROUPAROO_RECORDS_BATCH_SIZE) !== null && _b !== void 0 ? _b : "500"),
// How many Records should a Run try to send at once to Destinations which support batch exporting?
exports: parseInt((_c = process.env.GROUPAROO_EXPORTS_BATCH_SIZE) !== null && _c !== void 0 ? _c : "100"),
// How many rows can we update in the Grouparoo database at a time. Affects db performance.
internalWrite: parseInt((_d = process.env.GROUPAROO_INTERNAL_BATCH_SIZE) !== null && _d !== void 0 ? _d : "5000"),
};
},
};