Welcome Guest, Not a member yet? Register   Sign In
Memory consumption bug
#7

(This post was last modified: 03-05-2019, 04:52 PM by John_Betong.)

Further to my orevious post, here is a post of mine from another forum:


// quote start
This may be of interest...

I was looking at different options to reduce the six minute time time taken to download and convert two XLS spreadsheets into a common database table. I reduced the time down to less than a minute mostly by using the following instead of stepping through each CSV row then adding to the table of over 22,000 rows.

https://dev.mysql.com/doc/refman/5.7/en/load-data.html 3

It was not easy to setup because the table did not exactly match the CSV fields so I now create a new matching table, import the CSV data. After importing I then add additional columns then finally add a primary index. The latter two operations only take fractions of a second. Before adding the primary key it was necessary to delete duplicates which only took a fraction of a second.

Adding and verifying a couple of hundred updates (from another CSV file with a different structure) does not take long.
Reply


Messages In This Thread
Memory consumption bug - by MGatner - 03-01-2019, 09:50 AM
RE: Memory consumption bug - by kilishan - 03-01-2019, 01:32 PM
RE: Memory consumption bug - by MGatner - 03-04-2019, 11:49 AM
RE: Memory consumption bug - by MGatner - 03-05-2019, 02:29 PM
RE: Memory consumption bug - by John_Betong - 03-05-2019, 04:17 PM
RE: Memory consumption bug - by kilishan - 03-05-2019, 04:42 PM
RE: Memory consumption bug - by John_Betong - 03-05-2019, 04:49 PM
RE: Memory consumption bug - by MGatner - 03-06-2019, 10:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB