Skip to content

Commit

Permalink
Disable compression for serialized pages
Browse files Browse the repository at this point in the history
  • Loading branch information
wendigo committed Oct 22, 2024
1 parent e832e9f commit 2c174ce
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
import static com.google.common.base.MoreObjects.toStringHelper;
import static com.google.common.base.Preconditions.checkState;
import static com.google.common.base.Strings.isNullOrEmpty;
import static com.google.common.net.HttpHeaders.ACCEPT_ENCODING;
import static com.google.common.net.HttpHeaders.CONTENT_TYPE;
import static io.airlift.http.client.HttpStatus.NO_CONTENT;
import static io.airlift.http.client.HttpStatus.familyForStatusCode;
Expand Down Expand Up @@ -359,6 +360,8 @@ private synchronized void sendGetResults()
HttpResponseFuture<PagesResponse> resultFuture = httpClient.executeAsync(
prepareGet()
.setHeader(TRINO_MAX_SIZE, maxResponseSize.toString())
// Disable compression for pages - these are already compressed
.setHeader(ACCEPT_ENCODING, "identity")
.setUri(uri).build(),
new PageResponseHandler(dataIntegrityVerification != DataIntegrityVerification.NONE));

Expand Down

0 comments on commit 2c174ce

Please sign in to comment.