marklogic / marklogic/java-client-api

Feature request: XmlDocumentManager.write() returns an updated DocumentDescriptor

未关闭
#1,939 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
Java
星标
61
派生
74
平均合并
2 天 53 分钟
30 天内合并 PR
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);

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 XmlDocumentManager.write(DocumentDescriptor desc, WriteHandle handle) 开始,检查其接口、实现和现有测试。更新 API,使写入操作返回包含新文档版本的更新后 DocumentDescriptor,然后验证受影响的写入行为和调用方。

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
api, databases
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
冷清
描述清晰度
描述清楚
新手友好度
58/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。