android - How fast would this Firebase range query be -
i wonder search in firebase database , try understand if approche or how change it. "andromeda-planetgroup.123-local1001-1234548"
below immutable id string , perform searches on list containing them. think problem if list of "property"
have hundred miljons entries , performing range query.
if create range query this:
ref.startat("andromeda-planetgroup.123-local1001-1234548") .endat("andromeda-planetgroup.123-local1001-1234552~")
what can expect in terms of speed if list have miljons of entries. understand if range query return miljons if entries slow because of data size, lets want return 10 entries in range query?
"property" : { "andromeda-planetgroup.123-local1001-1234548" : { "id" : "-kgekdd94homnhghd4wc" }, "andromeda-planetgroup.123-local1001-1234549" : { "id" : "-kgekh28nifusaftu_gs" }, "andromeda-planetgroup.123-local1001-1234550" : { "id" : "-kgekmzsub92uijqqwq9" }, "andromeda-planetgroup.123-local1001-1234551" : { "id" : "-kgeli417b3e--maoly1" }, "andromeda-planetgroup.123-local1001-1234552" : { "id" : "-kgem5k4v1ytcw4_ggu-" ... ... ... ... "milkyway-planetgroup.4423-local901-836743" : { "id" : "-kgeld5jh-ffdeooy1" }, "milkyway-planetgroup.4423-local901-836744" : { "id" : "-kg39e7gjsa&4_ksu-" }
if bad ide how can make fly better?
Comments
Post a Comment