Previously, I was used to using subscription utilizing a paging technique of getting data from the server by batch (or by page) with using limit and offset.
If I have a total of 1000 chat messages for example, when I subscribe to the publication, it will initially just return the last 20 messages (limit). Then as I browse up, I will just change the offset (skip) and it will get a new set of previous 20 messages. And minimongo would have already saved 40 messages in the client.
Now with redis oplog, it seems like if I change the limit and offset (skip) in the DB query, it will unsubscribe from the previous subscription and the previous data will be gone from minimongo. Therefore, as I moved through the pages, I always only have 20 messages in minimongo. Is this the expected behavior? What is the proper way to subscribe to chat messages without taxing the database?