objectbox / objectbox/objectbox-java
Object update predicate
まだ誰も着手していません。
- 主要言語
- Java
- スター
- 4.6k
- フォーク
- 311
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Is it possible to add merge predicate when putting object that already exists? The thing is that we use ObjectBox on a very large application and server gives us the same object with different properties on different screens so we need to somehow merge the server response and the db object.
At the moment, we simply take the object from db, merge it with server object then put it back (same with collections), but I think that is slow and not effective compared to what native interface can possibly provide.
I can imagine it being:
box.put(object, (dbObject, ourObject) -> {
//do the merge
});
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、既存の Box.put API と、issue で言及されているネイティブインターフェースを確認します。現在のオブジェクトおよびコレクションの更新動作を比較し、次に predicate callback に期待される契約と、既存のデータベースオブジェクトと指定されたオブジェクトのマージ完了をどのように検証するかを判断します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- databases
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 30/100