I am seeing a behavior where if I update a document
(last updated date) every time an event happens, the amount of memory
and # of documents used in sync gateway grows very large.
It appears that a “sync document” is created whenever a change is made to a document.
I need to find out whether this is expected. I wonder if sync gateway will eventually compact this.
If this is expected behavior, it will limit how we can use sync gateway.
For instance, we may need to calculate the last message date on the fly
on the client side.