Fixed bulk delete
This commit is contained in:
parent
2c927dda9d
commit
e7759dd97f
|
@ -29,7 +29,6 @@ public class DeleteDocument extends DocumentElaboration {
|
|||
JsonNode jsonNode = DSMapper.asJsonNode(line);
|
||||
if(aggregatorPersistenceSrc.isBulkDeleteAllowed()) {
|
||||
arrayNode.add(jsonNode);
|
||||
aggregatorPersistenceSrc.deleteRecord(jsonNode);
|
||||
if(arrayNode.size()>=effectiveMaxRowPerStep) {
|
||||
aggregatorPersistenceSrc.deleteRecords(arrayNode);
|
||||
arrayNode = DSMapper.getObjectMapper().createArrayNode();
|
||||
|
|
Loading…
Reference in New Issue