Reputation: 6273
According to the MySQL Certification Guide, when --tab
option is used,
a
SELECT ... INTO OUTFILE
is used to generate a tab delimited file in the specified directory, a file containingSQL (CREATE TABLE)
will also be generated
and that
using
--tab
to produce tab-delimited dump files is much faster
but how can it be faster if both generate a SQL file and the --tab
one just has an extra tab?
Upvotes: 0
Views: 1019
Reputation: 400932
I would say that :
--tab
, a file is generated, that contains both :
create
statementsinsert
statements--tab
, two files are generated :
create
statementsinsert
statementsThe difference is the second part :
insert
sI'm guessing that creating lots of insert
statements takes more time than just dumping data with a tab-delimited format -- maybe it's the same with importing the data back, too ?
Upvotes: 2