CSV Importing Advice |
(04-25-2017, 12:46 PM)kilishan Wrote: The problem looks like you're doing several db interactions at each point during this loop. You're checking to see if the company exists, potentially inserting a new department and updating the user to show they belong to that department. That many db interactions is going to cause a slowdown. You're right. I always felt that doing a db interaction for each line wasn't the right choice. I will have to have a good think about how to improve it. Thanks. |
Messages In This Thread |
CSV Importing Advice - by keithmclaughlin - 04-25-2017, 09:26 AM
RE: CSV Importing Advice - by skunkbad - 04-25-2017, 11:25 AM
RE: CSV Importing Advice - by keithmclaughlin - 04-25-2017, 11:33 AM
RE: CSV Importing Advice - by kilishan - 04-25-2017, 12:46 PM
RE: CSV Importing Advice - by keithmclaughlin - 04-26-2017, 03:06 AM
RE: CSV Importing Advice - by marksman - 04-25-2017, 04:57 PM
RE: CSV Importing Advice - by keithmclaughlin - 04-26-2017, 03:06 AM
RE: CSV Importing Advice - by marksman - 04-26-2017, 02:16 PM
RE: CSV Importing Advice - by qury - 04-26-2017, 12:55 PM
|