开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜