ACRA / acralyzer

Open source backend for ACRA reports.
GNU General Public License v3.0
489 stars 90 forks source link

Unable to purge older reports #41

Closed i906 closed 11 years ago

i906 commented 11 years ago

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.

image

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!

KevinGaudin commented 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.

KevinGaudin commented 11 years ago

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.