From fc6dbf142005c57623cd1386a576b1fb487ac44a Mon Sep 17 00:00:00 2001 From: Ivar Refsdal Date: Mon, 28 Mar 2022 19:56:37 +0200 Subject: Don't OOM on migrating large datasets. Always prefer user specified value for config, also for `false`/`nil` values. --- src/com/github/ivarref/yoltq/migrate.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/com/github/ivarref/yoltq') diff --git a/src/com/github/ivarref/yoltq/migrate.clj b/src/com/github/ivarref/yoltq/migrate.clj index 89fc286..6313b73 100644 --- a/src/com/github/ivarref/yoltq/migrate.clj +++ b/src/com/github/ivarref/yoltq/migrate.clj @@ -47,7 +47,7 @@ (let [tx (to->v2-ent cfg now-ms id)] @(d/transact conn tx) (if loop? - (recur (conj tx-vec tx)) + (recur (vec (take 10 (conj tx-vec tx)))) tx)) (do (log/info "No items left to migrate") -- cgit v1.2.3