Skip to content

Conversation

slowtech
Copy link

@slowtech slowtech commented Mar 27, 2022

As we all know, the speed of load data infile is faster than insert in MySQL.

so i add load data local infile to speed up data insert.

based on this, i make some tests.

Here are the test results.

image

Basically, load data local infile is 30% faster than insert.

BTW, by default, LOAD DATA LOCAL INFILE is not allowed to execute, we must set global local_infile=on before we use it.

I'm trying to support PgSQL, but unfortunately PgSQL doesn't support loading files from the client.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant