luxutils/laravel-table-optimize

Package for performing OPTIMIZE queries from Laravel app

0.0.1 2020-09-17 05:55 UTC

This package is auto-updated.

Last update: 2024-11-22 09:37:17 UTC


README

Latest Version on Packagist Total Downloads

Use with caution!

Database tables with lots of insert / delete operations sometimes grows in size. For example, Laravel's jobs table could be empty and still take few GB's in size. That's because databases don't actually delete the data, it just marks it for deletion. Running OPTIMIZE or VACUUM commands on databases takes that space back. This package makes optimization easier.

Supported database engines

Currently only MySql and MariaDB are supported.

Installation

composer require luxutils/laravel-table-optimize

License

This package is released under the MIT license (MIT).