Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Which of the following is efficient and why? #422

Open
koushikromel opened this issue Jul 15, 2022 · 2 comments
Open

Which of the following is efficient and why? #422

koushikromel opened this issue Jul 15, 2022 · 2 comments

Comments

@koushikromel
Copy link

As I want to access a specific part(child) of the data in firebase so which is recommended

db.child("<specific_child>").get().val() or db.get().val()

will getting the whole database each time costs or create more traffic in the database when my database is too large.
Your response may be helpful in someways so don't hesitate to let me know what you know related to this topic
Thanks in advance

@bvechiato
Copy link

I'd guess getting the specific child is more efficient because it'd only return data in that child rather than the whole database

@koushikromel
Copy link
Author

I'd guess getting the specific child is more efficient because it'd only return data in that child rather than the whole database

Yeah Im already doing the same as you said but i thought lt may be a myth so i raised this question. Thanks for the reply man!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants