1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 13:24:03 +00:00
laravel-tips/content/tips/use-database-partitions-to-delete-large-chunks-of-data-efficiently.md
Samuel Štancl bcc973cc4b Week 26/2022
2022-07-02 17:24:23 +02:00

13 lines
No EOL
627 B
Markdown

---
title: 'Use database partitions to delete large chunks of data efficiently'
tweet_id: '1542863735810797569'
thread_slug: weekly-thread-2022-26
author_username: tobias_petry
images:
- 'https://pbs.twimg.com/media/FWacS3jWAAAHLyu.jpg'
created_at: 2022-07-01T13:32:34+00:00
slug: use-database-partitions-to-delete-large-chunks-of-data-efficiently
---
⚡ Database Tip
Some applications want to periodically delete old historic data (or have to because of regulations). Deleting billions of rows is a very slow task that could take several minutes and may take your application down. Use partitions for efficient deleting!