Are you using MySQL 5.1.7 or later ?
If you want to check if the situation really goes as expected, why not use a test circuit and only a sample of data so that it works faster?
Update Regarding whether -use-threads works, I am not sure about the possibility of a final check. However, I see no real difference in some of the tests I just used with ~ 130M data:
mysqlimport --lock-tables --debug-info --use-threads=2 test /tmp/test/*.txt Records: 2076063 Deleted: 0 Skipped: 0 Warnings: 0 User time 0.02, System time 0.08 Maximum resident set size 3884, Integral resident set size 0 Non-physical pagefaults 737, Physical pagefaults 0, Swaps 0 Blocks in 0 out 0, Messages in 0 out 0, Signals 0 Voluntary context switches 1340, Involuntary context switches 17 ---- mysqlimport --lock-tables --debug-info --use-threads=4 test /tmp/test/*.txt Records: 2076063 Deleted: 0 Skipped: 0 Warnings: 0 User time 0.03, System time 0.09 Maximum resident set size 3884, Integral resident set size 0 Non-physical pagefaults 738, Physical pagefaults 0, Swaps 0 Blocks in 0 out 0, Messages in 0 out 0, Signals 0 Voluntary context switches 1343, Involuntary context switches 41 ---- mysqlimport --lock-tables --debug-info --use-threads=8 test /tmp/test/*.txt Records: 2076063 Deleted: 0 Skipped: 0 Warnings: 0 User time 0.02, System time 0.09 Maximum resident set size 3884, Integral resident set size 0 Non-physical pagefaults 738, Physical pagefaults 0, Swaps 0 Blocks in 0 out 0, Messages in 0 out 0, Signals 0 Voluntary context switches 1341, Involuntary context switches 30
source share