Closed i906 closed 11 years ago
The way couchdb works, every document has to be loaded before being deleted. To limit the amount of requests I decided to do it via the bulk document update system, but now I see that I should divide it in several pieces... Or maybe load only their Id and revision id. As we are deleting them, sending only partial information may be enough.
I just pushed on ACRA/acra-storage/master and ACRA/acralyzer/master an update fixing this issue. A test on Cloudant allowed me to purge 3044 reports in 35 seconds, fetching only 583KB.
I noticed the browser downloads a big amount of data while purging (I have around 6000 reports). The purging did not complete and it crashes the browser.
I am using the latest acra-storage and acralyzer (aggregates branch). I usually delete the storage database and reupload it again when it gets too slow.
BTW the ACRA combo helped a lot in fixing my app bugs! Thanks!