Does firebase datasnapshot download the data when we invoke getValue?How to isolate data by groups of users in firebaseHow can I find a node's children count without downloading the data in FirebaseFirebase - App developing - calculate the delta without generating a high data trafficFirebase query implementationObserve particular data sets of FirebaseIssue exporting large json data from firebase with CurlDataSnapshot Firebase: Getvalue return nullDataSnapshot getValue() in Firebase returns nullFirebase cloud functions query for large datasetWhat does a firebase index do under the hood?

What do you call someone whose unmarried partner has died?

Can I request a credit item be removed from my report as soon as it is paid in full?

Are the EVA suits used in the ISS and in the NBL same or different?

Can we rotate symbols in LaTeX? How should we make this diagram?

How do the Martian rebels defeat Earth when they're grossly outnumbered and outgunned?

Why do airports in the UK have so few runways?

Physical interpretation of complex numbers

Bash to check if directory exist. If not create with an array

"Chess is 90% tactics" - should a player focus more on tactics in order to improve?

Surfacing out of a sunken ship/submarine - Survival Tips

Implement the Max-Pooling operation from Convolutional Neural Networks

Why did Leia not want to tell Han the truth about Luke and herself?

Does the "Fade Away" UA ranger variant feature grant the effect of the Greater Invisibility spell?

Is it possible to keep cat litter on balcony during winter (down to -10°C)

Hole in PCB due to corrosive reaction?

Is it sportsmanlike to waste opponents' time by giving check at the end of the game?

Fake TL072/TL074 IC's - how does the economics of it work?

How do I find the unknown program enabled during Start-Up?

Why did the Bohr Model Successfully calculate some of the energy levels in hydrogen?

What on earth is this small wall-mounted computer?

Why are Democrats mostly focused on increasing healthcare spending, rarely mentioning any proposals for decreasing the costs of healthcare services?

Is it unsafe to remove one stud from a load bearing wall?

Well-known American figure with Roman numerals

What is the meaning of Text inside of AMS logo



Does firebase datasnapshot download the data when we invoke getValue?


How to isolate data by groups of users in firebaseHow can I find a node's children count without downloading the data in FirebaseFirebase - App developing - calculate the delta without generating a high data trafficFirebase query implementationObserve particular data sets of FirebaseIssue exporting large json data from firebase with CurlDataSnapshot Firebase: Getvalue return nullDataSnapshot getValue() in Firebase returns nullFirebase cloud functions query for large datasetWhat does a firebase index do under the hood?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









0

















Does firebase datasnapshot download the data when we invoke getValue
or does it behave more like a container that contains the whole tree structure referenced in database reference?



I need to perform an Or operation but according to the documentation that's not allowed. So I figured I would download the data I need from the narrowest node, and perform the filtering locally. The problem is that even then the data might eventually grow large if I have to download all of it and filter locally. So, if datasnapshot downloads the data when we invoke get value I could safely ignore the need to make a complex query to firebase.










share|improve this question


































    0

















    Does firebase datasnapshot download the data when we invoke getValue
    or does it behave more like a container that contains the whole tree structure referenced in database reference?



    I need to perform an Or operation but according to the documentation that's not allowed. So I figured I would download the data I need from the narrowest node, and perform the filtering locally. The problem is that even then the data might eventually grow large if I have to download all of it and filter locally. So, if datasnapshot downloads the data when we invoke get value I could safely ignore the need to make a complex query to firebase.










    share|improve this question






























      0












      0








      0








      Does firebase datasnapshot download the data when we invoke getValue
      or does it behave more like a container that contains the whole tree structure referenced in database reference?



      I need to perform an Or operation but according to the documentation that's not allowed. So I figured I would download the data I need from the narrowest node, and perform the filtering locally. The problem is that even then the data might eventually grow large if I have to download all of it and filter locally. So, if datasnapshot downloads the data when we invoke get value I could safely ignore the need to make a complex query to firebase.










      share|improve this question

















      Does firebase datasnapshot download the data when we invoke getValue
      or does it behave more like a container that contains the whole tree structure referenced in database reference?



      I need to perform an Or operation but according to the documentation that's not allowed. So I figured I would download the data I need from the narrowest node, and perform the filtering locally. The problem is that even then the data might eventually grow large if I have to download all of it and filter locally. So, if datasnapshot downloads the data when we invoke get value I could safely ignore the need to make a complex query to firebase.







      firebase firebase-realtime-database






      share|improve this question
















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 29 at 5:49









      KENdi

      6,2452 gold badges10 silver badges22 bronze badges




      6,2452 gold badges10 silver badges22 bronze badges










      asked Mar 28 at 21:55









      vander ouanavander ouana

      41 silver badge1 bronze badge




      41 silver badge1 bronze badge

























          1 Answer
          1






          active

          oldest

          votes


















          1


















          When you call getValue, then entire contents of the node is downloaded and becomes available. In that sense, there are no "shallow" queries exposed by the mobile client SDKs. (Though the REST API does support shallow queries that don't download all the child nodes.)



          As you've identified, this can change the way that you might want to organize your data. Shallow data structures are typically preferred in Realtime Database for this reason.






          share|improve this answer



























            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );














            draft saved

            draft discarded
















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55407436%2fdoes-firebase-datasnapshot-download-the-data-when-we-invoke-getvalue%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown


























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            1


















            When you call getValue, then entire contents of the node is downloaded and becomes available. In that sense, there are no "shallow" queries exposed by the mobile client SDKs. (Though the REST API does support shallow queries that don't download all the child nodes.)



            As you've identified, this can change the way that you might want to organize your data. Shallow data structures are typically preferred in Realtime Database for this reason.






            share|improve this answer






























              1


















              When you call getValue, then entire contents of the node is downloaded and becomes available. In that sense, there are no "shallow" queries exposed by the mobile client SDKs. (Though the REST API does support shallow queries that don't download all the child nodes.)



              As you've identified, this can change the way that you might want to organize your data. Shallow data structures are typically preferred in Realtime Database for this reason.






              share|improve this answer




























                1














                1










                1









                When you call getValue, then entire contents of the node is downloaded and becomes available. In that sense, there are no "shallow" queries exposed by the mobile client SDKs. (Though the REST API does support shallow queries that don't download all the child nodes.)



                As you've identified, this can change the way that you might want to organize your data. Shallow data structures are typically preferred in Realtime Database for this reason.






                share|improve this answer














                When you call getValue, then entire contents of the node is downloaded and becomes available. In that sense, there are no "shallow" queries exposed by the mobile client SDKs. (Though the REST API does support shallow queries that don't download all the child nodes.)



                As you've identified, this can change the way that you might want to organize your data. Shallow data structures are typically preferred in Realtime Database for this reason.







                share|improve this answer













                share|improve this answer




                share|improve this answer










                answered Mar 28 at 22:00









                Doug StevensonDoug Stevenson

                117k13 gold badges143 silver badges165 bronze badges




                117k13 gold badges143 silver badges165 bronze badges

































                    draft saved

                    draft discarded















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55407436%2fdoes-firebase-datasnapshot-download-the-data-when-we-invoke-getvalue%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown









                    Popular posts from this blog

                    Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                    Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

                    Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript