我通常使用
var threadnum = 0
ref.child('threads').once('value',(snapshot)=>{
threadnum = snapshot.numChildren();
console.log('threads', threadnum);
},(err)=>{
console.log(err);
});
要从firebase获取线程数,但我想现在有太多线程,所以我得到了Error: too_big: The data requested exceeds the maximum size that can be accessed with a single request.
通常你会采取什么措施来解决这种情况下的孩子数量?