Bug 1115146 - Purge (delete) data using smaller batches

1. full scan (only once) the table or index, and put the keys of the rows to delete in a temporary file
2. delete the rows by primary key in batches