diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-21 21:44:29 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-21 21:44:29 +0200 |
| commit | 77069d9c0a41c66dbaed5452df6880c349a3efc8 (patch) | |
| tree | 20bfc8684a591aa01b49adaf282d10aeb26d327e | |
| parent | c138842b31bac9bbbaa51d285a275e239a11ce8b (diff) | |
| download | shrinker-77069d9c0a41c66dbaed5452df6880c349a3efc8.tar.gz shrinker-77069d9c0a41c66dbaed5452df6880c349a3efc8.zip | |
do not ignore duplicates. fuck
| -rw-r--r-- | worker.js | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -389,7 +389,6 @@ function flatten(obj) { // now access db try { // upsert whole batch in parallel - await seq.query("SET unique_checks=0"); logger.info("inserting batch into db"); await seq.transaction({ autocommit: false }, async (transaction) => { await Promise.all([ @@ -447,7 +446,6 @@ function flatten(obj) { ) ]) }); - await seq.query("SET unique_checks=1"); logger.info("acking batch", { size: msgs.size }); for (let msg of msgs) |
