ClickHouse / ClickHouse/clickhouse-java

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

オープン
#2,928 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
client-api-v2 performance
主要言語
Java
スター
1.6k
フォーク
636
平均マージ
2日 23時間
マージ済み PR(30日)
29

説明

### 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.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

com.clickhouse.client.api.data_formats.internal.BinaryStreamReader#skipValue から始め、readValue にどのように委譲し、ストリームを進めているかを確認します。スキップされた値(BigInteger フィールドを含む)で完全なオブジェクト作成が不要になり、reader が次の値を読み取れる正しい位置に引き続き配置されていれば完了です。周辺のテスト構造から該当するものが特定できる場合は、reader に焦点を当てたテストを追加または更新してください。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
backend
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
48/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。