“一个子值的大小"的含义Firebase限制10Mb [英] meaning of "Size of one child value" limit 10Mb for firebase
问题描述
firebase文档指定一个子值的大小"的限制为10Mb. 这是否意味着该孩子的JSON对象的大小?
The firebase documentation specifies the limit for "Size of one child value" is 10Mb. Does that mean the size of the JSON object of that child?
例如,使用文档中的示例:
For example, using example in the documentation:
{
"users": {
"mchen": {
"friends": { "brinchen": true },
"name": "Mary Chen",
// our child node appears in the existing JSON tree
"widgets": { "one": true, "three": true }
},
"brinchen": { ... },
"hmadi": { ... }
}
}
这里的节点用户"是否被视为子级?如果是这样,这是否意味着如果用户数量变大(例如成千上万,假设每个用户有100字节数据),那么所有用户的大小总和将超过10Mb限制吗?谢谢
Is node "users" considered as a child here? if so, does it mean if the # of users gets large(like hundreds of thousands, assuming each user has 100 bytes data), then the sum of sizes of all users will be exceeding the 10Mb limit? Thanks
推荐答案
文档显示,单个节点的值最多为10MB.某个位置下的子节点不被视为值,它们只是...子节点.
As the documentation says the value of a single node can be at most 10MB. The child nodes under a location are not considered a value, they're just... child nodes.
一棵树可以大于10MB.从逻辑上考虑,这也是有道理的:否则,整个数据库绝不能大于10MB,这是不正确的.
A tree can be larger than 10MB. Logically thinking this also makes sense: otherwise the entire database could never be larger than 10MB, which is not true.
这篇关于“一个子值的大小"的含义Firebase限制10Mb的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!