开发者

php artisan db:show does not refresh table sizes afrer truncating

开发者 https://www.devze.com 2022-12-07 19:09 出处:网络
If you\'re using MySQL setting: innodb_file_per_table=ON You free disk 开发者_StackOverflow中文版space when removing records from tables, but in order to refresh statistics once you a table free spac

If you're using MySQL setting:

innodb_file_per_table=ON

You free disk 开发者_StackOverflow中文版space when removing records from tables, but in order to refresh statistics once you a table free space, it's required by MySQL to run ANALYZE TABLE your_table.

I wonder how Laravel handles this internally. Currently doesn't refresh it automatically.

0

精彩评论

暂无评论...
验证码 换一张
取 消