Querying on Firebase Database with large data set is very very slow

十年热恋 提交于 2019-12-03 15:27:09

If you want to continue expanding the best thing to do would be to duplicate your data in a zone reference where it knows which elk/su are a part of it. Something like this:

{
    zones: {
        elk: {
            "istan-besik": {                
                "-KSp)bL5....": true,
                ...: true
            }
        }
    }
}

That way when you want to search for all you would just do:

...child('zones').child(zoneId).child(cutType)

And then loop through those to go get each elk/su directly

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!