I have two firebase realtime db queries.
Query 1 : firebase.database().ref("Messages/" + suid).child(ids + "/chat").orderByKey().limitToLast(1); Query 2 : firebase.database().ref(`Messages/${suid}/${ids}/chat`).orderByKey().limitToLast(1); Both queries are working fine, what is difference between query 1 and query 2. Is Query 2 technically correct/reliable or efficient from Query 1. Will it save my download bandwidth?