marklogic / marklogic/java-client-api
Feature request: XmlDocumentManager.write() returns an updated DocumentDescriptor
まだ誰も着手していません。
- 主要言語
- Java
- スター
- 61
- フォーク
- 74
- 平均マージ
- 2日 53分
- マージ済み PR(30日)
- 8
説明
We would like to use the optimistic read feature on XmlDocumentManager.read(DocumentDescriptor desc, String uri). To use it effiently we would store the latest DocumentDescriptor and document in memory on our client side, thus when XmlDocumentManager.read(DocumentDescriptor descr, String uri) returns null - signalling that the content on the server has not changed in between - we know that our descriptor and document in memory is up to date.
Request: to close the loop we would need to enhance the XmlDocumentManager's write method to return the updated DocumentDescriptor (with the updated document version number inside) like this:
DocumentDescriptor write(DocumentDescriptor desc, WriteHandle handle);
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
XmlDocumentManager.write(DocumentDescriptor desc, WriteHandle handle) から開始し、そのインターフェース、実装、および既存のテストを確認します。書き込み操作が新しいドキュメントバージョンを含む更新済みの DocumentDescriptor を返すように API を更新し、その後、影響を受ける書き込み動作と呼び出し元を確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- api, databases
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 静か
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 58/100