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.
精彩评论