Skip to content

Commit

Permalink
fixup! reduce ram acocunting overhead in min() / max() aggregations
Browse files Browse the repository at this point in the history
  • Loading branch information
mfussenegger committed Jan 8, 2015
1 parent 0911404 commit 3c159a4
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions sql/src/main/java/io/crate/breaker/ConstSizeEstimator.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,4 @@ public long estimateSize(@Nullable Object value) {
}
return size;
}

@Override
public long estimateSizeDelta(@Nullable Object oldValue, @Nullable Object newValue) {
if (oldValue == null) {
if (newValue == null) {
return 0;
}
return size - 8;
}
if (newValue == null) {
return 8 - size;
}
return 0;
}
}

0 comments on commit 3c159a4

Please sign in to comment.