I've got 25,000,000 codes (each code has 8 random literals) to insert into my database. We're running with MySQL and Apache Torque as ORM.
My table simplified looks like this:
table_code
id BIGINT, Primary Key (no auto-increment, bc of ORM)
code VARCHAR
What is the most efficient way to insert them? I tried this with generating Torque-Objects over night, but since the ID needs to be autoincremental, it takes forever.
Any ideas are much appreciated :) Thank you!