Data Store Selection and Usage
How an Intern Released 3 Terabytes Worth of Storage Before BFCM - Shopify

How an Intern Released 3 Terabytes Worth of Storage Before BFCM - Shopify

12/14/2018

What this post added

This post details the use of the `job-iteration` library to build a Rails background job for deleting a large volume of historical records from MySQL. It explains the enumerator/iterator pattern, the use of an internal throttling enumerator to prevent database overload and replication lag, and the importance of proper indexing and cursors for efficient batch deletion. The post also quantifies the impact of the deletion by showing a 3x reduction in database page scans and highlights the cost savings and resilience improvements achieved.

Read the original post ↗