rigelhope / omnidroid

Automatically exported from code.google.com/p/omnidroid
Apache License 2.0
0 stars 0 forks source link

Delete Logs Needs To Be Threaded/Optimized #166

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When you switch from 1 day log limit to 1 hour log limit, on the next event 
logging, it will try to delete the 23 hours worth of logs and this blocks the 
rest of the app.  It should be threaded or delete should be optimized to run in 
one sql call instead of one for every log that needs delete (or both).

Problem would be even worse when switching from 7 days to 1 hour.  Ouch!

Original issue reported on code.google.com by case.and...@gmail.com on 3 Aug 2010 at 1:38

GoogleCodeExporter commented 8 years ago
Replacing with single sql statement.

Code review: http://codereview.appspot.com/1876048

Original comment by case.and...@gmail.com on 3 Aug 2010 at 11:30

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r857.

Original comment by case.and...@gmail.com on 6 Aug 2010 at 1:54