perf: add an opt-in read-only connection pool
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 28/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 活発
- 技術スタック
- android, ios, react-native, sqlite
- 領域
- database, mobile, performance
調査の方向性
Start by reviewing the existing independent read-only connection API and native FIFO behavior, then compare one connection with a small read pool on mixed read/write workloads for queue wait, query time, memory, WAL size, and battery/CPU cost on iOS and Android. Done requires recorded measurements before implementation, plus documented journal-mode and snapshot semantics and a clearly scoped opt-in pool lifecycle.
索引モデルが issue の本文から書いたものです。
説明
NitroSQLite now supports independent read-only connections to one database file, but callers must create, select, and close each connection themselves. A write-heavy app with long reads may benefit from an opt-in pool that routes independent read queries across a bounded set of handles while retaining one writer connection.
Design a small pool API on top of the existing independent-connection and native FIFO behavior. Bound the connection count, preserve each connection's configuration, reject writes on reader handles, and close all handles only after outstanding work has settled or been cancelled. Document the SQLite journal mode and snapshot semantics; a pool must not silently change a database's journal mode or promise parallel writes.
Before implementation, compare one connection with a small read pool on realistic mixed read/write workloads. Record queue wait, query time, peak memory, WAL size, and battery/CPU cost on iOS and Android. Avoid a default pool until measurements show a benefit beyond the existing independent-connection API.
Related: #62, #364, #369. The independent read-only connections are already available; this issue tracks automatic routing and lifecycle only.
- 主要言語
- C
- スター
- 579
- フォーク
- 53
- 平均マージ
- 2日 5時間
- マージ済み PR(30日)
- 67
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
margelo/react-native-nitro-sqlite のほかの issue
-
area:api area:runtime enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
margelo/react-native-nitro-sqlite#402 ·
メンテナーはふだん 1 日以内に返信
-
area:api area:runtime enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
margelo/react-native-nitro-sqlite#400 ·
メンテナーはふだん 1 日以内に返信
-
area:api area:runtime enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 28/100
margelo/react-native-nitro-sqlite#399 ·
メンテナーはふだん 1 日以内に返信
-
area:api area:runtime enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
margelo/react-native-nitro-sqlite#398 ·
メンテナーはふだん 1 日以内に返信
-
area:api area:runtime enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 48/100
margelo/react-native-nitro-sqlite#397 ·
メンテナーはふだん 1 日以内に返信
margelo/react-native-nitro-sqlite の issue をすべて見る
似ている issue
-
backend
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
BasedHardware/omi#20940 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
kovidgoyal/kitty#10625 ·
メンテナーはふだん 1 日以内に返信
-
Feature Status: Needs Triage
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
メンテナーはふだん 1 日以内に返信
-
docs
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信