You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[performance][benchmark] Typed read, queryAll, POJO insert and compressed decode #3516
The JMH suite in performance/ has no benchmark for four paths of client V2 that applications use. Their cost cannot be measured, and a change cannot be compared with the code before it.
A read through the typed getters only (getLong, getDouble, getString and so on). QueryClient.queryV2 takes each value with readValue. QueryClient.queryV2WithTypes takes each value two times: with readValue and with the getter.
Client.queryAll, into a list of GenericRecord and into a list of POJOs of a registered class.
Client.insert(table, List<?>) with POJOs of a registered class.
The decode of a compressed response together with its values.Compression.queryV2NativeLz4 reads a compressed response but decodes no value. Deserializers.DeserializerOutputStreamV2 decodes the values of a response that is not compressed.
Wanted: a benchmark for each of these paths that runs alone by its name, with the datasets that the suite has.
Recommendation: Keep open — PR #3517 in review
PR #3517 closes this issue: it adds a JMH benchmark for each of the four paths, and changes no existing class or build file. A maintainer approved it, then asked to correct one review finding: DataSetPojo.checkFilled takes null, false, and 0 as values that were not set.
Status on main: Not applicable — read main (1b33bf6d): the performance/ module has no benchmark for the four paths, as the issue says.
Breaking change: No
Duplicates / related: No others.
Analysis: Confirmed on main: QueryClient.queryV2 reads each value only with readValue (QueryClient.java:52), and queryV2WithTypes reads it with readValue and the getter (QueryClient.java:91-94). Compression.queryV2 only drains the response stream (Compression.java:249). Deserializers.DeserializerOutputStreamV2 decodes a RowBinary buffer that is not compressed (Deserializers.java:65-75). The module calls Client.queryAll only to set up data (BenchmarkBase.java:175), and has no insert(table, List).
Automated triage by Polyglot AI. A maintainer makes the final decision.
Activity
polyglotAI-bot commentedon Dec 3, 2026
Recommendation: Keep open — PR #3517 in review
PR #3517 closes this issue: it adds a JMH benchmark for each of the four paths, and changes no existing class or build file. A maintainer approved it, then asked to correct one review finding:
DataSetPojo.checkFilledtakesnull,false, and0as values that were not set.main: Not applicable — readmain(1b33bf6d): theperformance/module has no benchmark for the four paths, as the issue says.Analysis: Confirmed on
main:QueryClient.queryV2reads each value only withreadValue(QueryClient.java:52), andqueryV2WithTypesreads it withreadValueand the getter (QueryClient.java:91-94).Compression.queryV2only drains the response stream (Compression.java:249).Deserializers.DeserializerOutputStreamV2decodes a RowBinary buffer that is not compressed (Deserializers.java:65-75). The module callsClient.queryAllonly to set up data (BenchmarkBase.java:175), and has noinsert(table, List).Automated triage by Polyglot AI. A maintainer makes the final decision.