title: Firebase pagination limitToFirst() vs limitToLast()
body: <p>I was trying to implement Firebase in android, I have few queries in that, I would be glad if you would help me into this. Getting bit confused in it. So here is my question. </p>
  
  <p>I am showing Firebase chat in <code>listview</code> in which I want to only load 1st 100 messages from firebase after that User will do <code>pull-to-refresh</code> then load 1st 200 messages and so on.</p>
  
  <p><a href="https://i.imgur.com/AbrVMGr.png" rel="nofollow noreferrer"><img src="https://i.imgur.com/AbrVMGr.png" alt="enter image description here"></a></p>
  
  <p>For that I am looking in <code>limitToFirst()</code> and <code>limitToLast()</code> not getting idea which one is better. </p>
  
  <p>Can anyone please help.</p>