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 : QODBC Responding Poorly to the SELECT query given to the item table which has around 1500 records.Search Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC Frequently Asked Questions

 New Topic 
 
 Post Reply 
[1]  
 QODBC Responding Poorly to the SELECT query given to the item table which has around 1500 records. 
 Author   Message 
  JAY 
  
 Group: Members 
 Posts: 1 
 Joined: 2008-03-01 
 Profile
 Posted : 2008-03-01 20:19:36

Hello ,

I am using licenced version of QODBC Version 8.00.00.24.

 

Now, i try to connect to the Quickbooks through QODBC. I am using ASP.NET and c# (ADO 2.0) to connect to the Quickbooks.

Below is the connectionstring which i use to connect to the quick books which works.

Dsn=QuickbookDB;Driver={QODBC Driver for QuickBooks};OLE DB Services=-2

Now when i try to run an select query on customer table which has say 15 records it runs successfully, though a bit slow.

Below is my Optimizer setting

Now, when i run a query using my ASP.NET and c# application on item table which has roughly 1500 records. it takes ages to return back the result which
is not always reliable.

Below is the example query which i run
SELECT ListID FROM item NOSYNC WHERE Fullname = "'+itemname+'"

Also note that Fullname is JUMPIN_TYPE

 

 

Now why does this simple query take such a long time to execute??
Is there any setting i am missing ??

Please help. 

 

 

 

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2008-03-01 23:09:13

Both your ASP.NET and C# applications need to use a STA (single-threaded-apartment) threading model. Multi-threading actually slows QODBC down as we need to re-establish a connection to QuickBooks every time the Thread ID changes. 

See: ASP.NET vs Classic ASP and Performance - VB Demo verus my C# app 

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to