I'm trying to user firebase realtime database and facing now warning message I can't solved it
Using an unspecified index. Your data will be downloaded and filtered on the client. Consider adding '".indexOn": "sharingIds/4jjf24uurjkfJDGLS"' at MedicalCaeses to your security and Firebase Database rules for better performance
structure
MedicalCaeses {
urjkfJDGL
{
name: "Ali"
sharingIds : {"4jjf24uurjkfJDGLS": true,"jsaiwn22Ad2GLS": true}
}
}
.indexOn
"MedicalCaeses":{
"sharingIds":{
".indexOn": ".value"
}
},
Query
await FirebaseDatabase.instance
.reference()
.child('MedicalCaeses')
.orderByChild('sharingIds/4jjf24uurjkfJDGLS')
.equalTo(true)
.once();
result
W/PersistentConnection( 8104): pc_0 - Using an unspecified index. Your data will be downloaded and filtered on the client. Consider adding '".indexOn": "sharingIds/4jjf24uurjkfJDGLS"' at MedicalCaeses to your security and Firebase Database rules for better performance
I/flutter ( 8104): <Data Read> {xxxxx: {sharingIds: {4jjf24uurjkfJDGLS: true}, name: Ali}}