Skip to content

Commit d5491f3

Browse files
authored
Merge pull request #6530 from FlorentinD/skip-preaggregate-single-rel
Avoid pre-aggregation for single relationships
2 parents 17a7dfb + 4eff33f commit d5491f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/org/neo4j/gds/core/loading/AdjacencyBuffer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ void addAll(
212212
if (propertyValues == null) {
213213
compressedTargets.add(localId, targets, startOffset, endOffset, targetsToImport);
214214
} else {
215-
if (aggregations[0] != Aggregation.NONE) {
215+
if (aggregations[0] != Aggregation.NONE && targetsToImport > 1) {
216216
targetsToImport = preAggregate(targets, propertyValues, startOffset, endOffset, aggregations);
217217
}
218218
compressedTargets.add(localId, targets, propertyValues, startOffset, endOffset, targetsToImport);

0 commit comments

Comments
 (0)