Using MySQL (either InnoDB or MyISAM tables--I have both), if I TRUNCATE
a table and then LOAD DATA INFILE
, should I issue an OPTIMIZE TABLE
call after the LOAD
? It's unclear to me if this is a helpful action?
Take the 2-minute tour
×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.
MyISAMYou should perform this as follows:
The The Skip doing
InnoDB
In other words doing this:
would mechanically behave like
No real benefit in the case of InnoDB. Just the |
|||||
|