couchdb:更新带有附件的文档的元数据?
如果我有一个包含一些元数据字段和一个 10MB 附件的 CouchDB 文档,是否有办法更新文档并保持附件不变,而无需重新传输 10MB 附件?
If I have a CouchDB document with a handful of metadata fields and a 10MB attachment, is there a way to update the document and leave the attachment identical, w/o having to re-transmit the 10MB attachment?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它按预期工作,发送新文档(带有
_attachments
存根和最新的_rev
)并且它应该工作。除非元数据指的是附件存根的
content_type
字段,否则在这种情况下这是不可能的。It works as intended, send new document (with
_attachments
stubs and latest_rev
) and it sholud work.Unless, by metadata you mean
content_type
field of attachment stub, in that case it is not possible.