Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • Does every insert statement insert 1 row? Or many? Commented Jun 18, 2015 at 15:57
  • The insert statement insert all rows together. I have updated my question to reflect this. Commented Jun 18, 2015 at 16:17
  • So you are sending 2000 rows in one insert statement and it takes 12 hours to complete? Something doesn't look right. How wide are the rows (i.e. what types are the 40 columns of?) It would be best if you added in the question the output of SHOW CREATE TABLE name ; Commented Jun 18, 2015 at 16:18
  • I should clarify. The insert statement inserts all the past 7 days of data for a single user (entry). This happens for each of the 2000 users. So there are 2000 insert statements with 7 rows and 10 columns each. 35 out of the 40 columns are FLOAT the rest are VARCHAR(150). Commented Jun 18, 2015 at 16:26
  • Good, please add this info in the question. So the statements would be more like INSERT INTO Table (DATE, NAME, COLUMN_1, ..., COLUMN_10) ... (or 11-20, etc.), right? Commented Jun 18, 2015 at 16:28