Concluded that loading the track logs via MySQL dump format (i.e. INSERT statements) is too slow. It's been running for several days. Wrote conversion from those dump files into CSV files. Each .sql file generates one .csv file for each table that it feeds. Wrote unittest for this. The csv files will additionally be sorted on the primary key, using Unix sort, before being loaded into MySQL.