ClickHouse / ClickHouse/clickhouse-java

[client-v2] POJO serialization: Skipped fields still consume memory

Offen
#2,928 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
client-api-v2 performance
Vorherrschende Sprache
Java
Sterne
1.6k
Forks
636
Ø Merge
2 T. 23 Std.
Gemergte PRs (30 T.)
29

Beschreibung

### Description

Method `com.clickhouse.client.api.data_formats.internal.BinaryStreamReader#skipValue` internally calls `readValue` and does complete read and object creation. This may be critical when many `BigInteger` fields are skipped but still consume memory.

Expected that next evolution of the reader will have option to read or skip bytes from stream entirely.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start in com.clickhouse.client.api.data_formats.internal.BinaryStreamReader#skipValue and inspect how it delegates to readValue and advances the stream. Done means skipped values, including BigInteger fields, no longer require full object creation while the reader remains correctly positioned for the next value; add or update focused reader tests if the surrounding test structure identifies them.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
java
Bereich
backend
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Ruhig
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
48/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.