Skip to content

Commit 7b2c4e4

Browse files
feat: enable trailer optimization by default (#2421)
This should save ~300-500u for readRow calls Change-Id: Idcf531e2db0e9c751c87f3522c8a2ad4733923d6 Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/java-bigtable/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea - [ ] Ensure the tests and linter pass - [ ] Code coverage does not decrease (if any source code was changed) - [ ] Appropriate docs were updated (if necessary) - [ ] Rollback plan is reviewed and LGTMed - [ ] All new data plane features have a completed end to end testing plan Fixes #<issue_number_goes_here> ☕️ If you write sample code, please follow the [samples format]( https://github.com/GoogleCloudPlatform/java-docs-samples/blob/main/SAMPLE_FORMAT.md).
1 parent 6b35b47 commit 7b2c4e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/EnhancedBigtableStubSettings.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public class EnhancedBigtableStubSettings extends StubSettings<EnhancedBigtableS
112112
private static final boolean SKIP_TRAILERS =
113113
Optional.ofNullable(System.getenv("CBT_SKIP_HEADERS"))
114114
.map(Boolean::parseBoolean)
115-
.orElse(DIRECT_PATH_ENABLED);
115+
.orElse(true);
116116

117117
private static final Set<Code> IDEMPOTENT_RETRY_CODES =
118118
ImmutableSet.of(Code.DEADLINE_EXCEEDED, Code.UNAVAILABLE);

0 commit comments

Comments
 (0)