Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add LOAD DATA LOCAL INFILE to speed up data insert #450

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

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