Using Firebase Database Bandwidth When Reading Using a Query

I use Firebase in my Android app, and I noticed that the app uses a lot of bandwidth. I only perform reading on minor children, as indicated by best practice, in order to maintain bandwidth.

If I execute this request:

Query queryRef = firebaseRef.orderByChild("internalKey").equalTo(false);
queryRef.addListenerForSingleValueEvent(new ValueEventListener()
        {
           ...

Does the database bandwidth used take into account all the children of the node, or only those that have internalKey = false?

+1
source share
1 answer

Bandwidth counts the amount of data that you upload and download. It's really that simple.

internalKey, Firebase , .

, internalKey, , . logcat iirc.

, (Firebase.getDefaultConfig().setLogLevel(Level.DEBUG)) , logcat .

+3

Source: https://habr.com/ru/post/1674494/


All Articles