Shopify

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

Dec 14, 2018
How an Intern Released 3 Terabytes Worth of Storage Before BFCM - Shopify
SummaryAI, from the source post

This post details the successful deletion of over 5 billion records, freeing up 3TB of storage and improving database resilience by reducing page scans by approximately 3x. This was achieved by building a Rails background job using the `job-iteration` library for chunked deletion and an internal throttling enumerator to prevent database overload and replication lag. The job utilized cursors for efficient batch fetching and deletion, ensuring minimal impact on database performance during a critical pre-BFCM period.

More from the Data Store Selection and Usage trail