Member Login

Username
Password
Forget Password
New Sign Up
Search Forum

Buy Support
Incidents

If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:

Click Here
If you can't login and post questions or you are having trouble viewing forum posts:
Click Here
Callback
Support

If you live in USA, UK, Canada, Australia or New Zealand, you can leave us details on your question and request us to call you back and discuss them with you personally  (charges apply).

Click Here
 
Buy Support
Incidents
If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:
Click Here

Forum : Inserting Employee PerformanceSearch Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC v9 Forum

 New Topic 
 
 Post Reply 
[1]  
 Inserting Employee Performance 
 Author   Message 
  scadav 
  
 Group: Members 
 Posts: 8 
 Joined: 2008-12-28 
 Profile
 Posted : 2009-01-07 20:22:51

I am inserting employee records from MS Access and it takes about 8-9 minutes to insert 110 employees. I am doing a bulk insert (see below for sample) as per a previous qodbc post that I had found (although it looks like QODBC does each one individually). I have my access driver settings setup as per this posting: SLOW performance using MS Access and QuickBooks 2008 Enterprise Edition .

So my question is...is 8-9 minutes to do 100 employee inserts reasonable or should it be taking a lot less time?

sample vba:

sInsertSQL = "INSERT INTO " & sTableName & " ( IsActive, FirstName, MiddleName, LastName, SIN, Sex, BirthDate, EmployeeAddressAddr1, EmployeeAddressCity, EmployeeAddressState, EmployeeAddressPostalCode, Phone, Notes ) " & _

"SELECT 1 AS ActiveFlag, Trim([Employees.FirstName]), Left([MiddleName],1) AS MI, Trim([Employees.LastName]) & ' ' & [OldEmployeeID] AS ModifiedLastName, Employees.SIN, IIf([Male]=True,'Male','Female') AS Sex, Employees.DOB, Employees.Address, Employees.City, Employees.State, Employees.Zip, Employees.PrimaryPhone, 'Imported ASED - ' & Now() & ' ID: ' & [DatabaseID] AS QBNotes " & _

"FROM Employees " & _

"WHERE (((Employees.qb_exported) Is Null)) "

DoCmd.SetWarnings False

DoCmd.RunSQL sInsertSQL

DoCmd.SetWarnings True

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2009-01-08 09:49:41

Uncheck "Optimize data after each Insert or Update".

 

  Top 
  scadav 
  
 Group: Members 
 Posts: 8 
 Joined: 2008-12-28 
 Profile
 Posted : 2009-01-08 12:07:34

Much faster....under 2 minutes now.

Do I lose anything with this unchecked?  It looks like from all screen shots I have seen it is always checked.

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2009-01-08 13:44:09

Sorry, but I always show it checked so everyone stops posting that they did a insert and they couldn't find the new record. When working with batches you should have this option off and then do a:

sp_optimizeupdatesync Employee

afterwards to resync the optimized table.

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to