In my project I need replicate big database. It contains about 2 * 10^5 documents.
I use ForestDB as database storage (7949e8d59b9b30f7711be47a121dfbda9c82f2a8).
At first I pull the database. After successfull pull I start a push replication.
On this step I get a crash - memory limit.
I profile the app and discover that push replication save all revision in RAM.
This logic places in CBL_ForestDBStorage.mm file in changesSinceSequence method. The method create an array of all changes.
Also I don't have this error when I use SQLite database storage.
It is possible to change push logic without necessary to save all revisions in RAM?