Mysql efficient method of data guide to explain _mysql

Source: Internet
Author: User
Data: A db,2000 table, 2000 Tabular data, 30 column per record, and an average of 4.3w records per sheet, totalling 86,388,670 records.

Machine: Linux 64bit 8G memory 4 core Intelx3320@2.5ghz

Basic ideas:
Copy Code code as follows:

Mysql-utest-pxxxx-s-E "source Xxxx.sql"


Put the LOAD statement in the Xxxx.sql

Load Syntax:
Copy Code code as follows:

Load data [low_priority] [local] infile ' file_name.txt ' [replace | ignore]

If the serial import data is slow, consider parallelism, but there may be a conflict, workaround:

Empty table before load
Copy Code code as follows:

TRUNCATE table xxxx or delete from table xxxx;

Or use the Replace or ignore keyword.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.