gpt4 book ai didi

python - Cosmos DB 最大文件大小限制 1.5MB

转载 作者:行者123 更新时间:2023-12-01 07:11:49 24 4
gpt4 key购买 nike

我正在尝试使用 pymongo 的 update_one/update_many 方法更新 azure cosmos 数据库中的 json 文件。
我收到错误代码 17419(更新后的结果文档大于 x)
根据azure cosmos db documentation ,文件大小限制为 2MB,但我的文件现在为 1.498MB,而我尝试插入的数据远不及 0.5MB(只有 49.5 kB)和 1.5 + 0.049 < 2 据我所知...

我错过了什么吗?

最佳答案

基于document ,2 mb 限制是针对请求的,而不仅仅是文件。

enter image description here

CRUD请求不仅包含文件数据,还包含 header 等。因此,尽管您的文件数据低于 2 mb,但恐怕您的更新请求超过 2 mb。您可以尝试使用 Fiddler 来捕获您的请求的大小。工具,以便您可以排除其原因。

关于python - Cosmos DB 最大文件大小限制 1.5MB,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58173495/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com