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);
|
JsonNode jsonNode = DSMapper.asJsonNode(line);
|
||||||
if(aggregatorPersistenceSrc.isBulkDeleteAllowed()) {
|
if(aggregatorPersistenceSrc.isBulkDeleteAllowed()) {
|
||||||
arrayNode.add(jsonNode);
|
arrayNode.add(jsonNode);
|
||||||
aggregatorPersistenceSrc.deleteRecord(jsonNode);
|
|
||||||
if(arrayNode.size()>=effectiveMaxRowPerStep) {
|
if(arrayNode.size()>=effectiveMaxRowPerStep) {
|
||||||
aggregatorPersistenceSrc.deleteRecords(arrayNode);
|
aggregatorPersistenceSrc.deleteRecords(arrayNode);
|
||||||
arrayNode = DSMapper.getObjectMapper().createArrayNode();
|
arrayNode = DSMapper.getObjectMapper().createArrayNode();
|
||||||
|
|
Loading…
Reference in New Issue