Explore using OPFS as an attachment store instead of idv/indexeddb blobs
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- javascript
- 領域
- databases
調査の方向性
OPFS のリンクと issue #9167 の議論から始めてください。OPFS と IndexedDB 間のトランザクション性、worker 専用の同期アクセス API、コンパクション中の未参照添付ファイルのクリーンアップを調査してください。実行可能なアプローチと、その障害からの復旧動作を文書化できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Idea via @SourceR85 in https://github.com/apache/pouchdb/issues/9167#issuecomment-3755310344
Things to consider:
- How can we ensure transactionality between two different data stores?
- IndexedDB transactions auto-commit on the end of the runloop, so we cannot do asynchronous tasks inside an IndexedDB transaction
- OPFS has a synchronous file access API, but that is only available in a worker for not-blocking-the-main-thread reasons
- A possible solution could write the attachments first and then start the IndexedDB transaction, but if the transaction fails, we might leave unreferenced attachments in OPFS that do not show up in IndexedDB. For that we would need a cleanup task that is not too expensive, so we can run it during compaction
- 主要言語
- JavaScript
- スター
- 17.6k
- フォーク
- 1.5k
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/pouchdb のほかの issue
-
elemMatch throws TypeError: value is null if array has null element対応中かも @henyanagar が 142 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 22/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
似ている issue
-
Handle HTTP errors when downloading release binaries対応中かも @mugenkyou が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
neutralinojs/neutralinojs-cli#468 ·
メンテナーはふだん 1 日以内に返信
-
area:ci priority:p0 type:chore
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
lucacasanova/homedeck#2 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
terser/html-minifier-terser#242 ·
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
MustacheCase/zanadir#516 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
stylelint-scss/stylelint-config-standard-scss#297 · コメント 1 件 ·