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 : VB Demo Super Slow on select from invoiceSearch Forum

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

 New Topic 
 
 Post Reply 
[1]  
 VB Demo Super Slow on select from invoice 
 Author   Message 
  keithcybin 
  
 Group: Members 
 Posts: 10 
 Joined: 2008-07-24 
 Profile
 Posted : 2008-08-20 04:50:18
 First I get my account number
select listid from customer where accountnumber = '10001'
and I get   80000031-1197388757 returned


Then I try to
select * from invoice where customerreflistid = '80000031-1197388757' but it just runs and runs forever

Any ideas as to why? 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2008-08-20 08:31:07

Well that query would extract every invoice for the customer, it would be better to target just invoices this year like this:

select * from invoice where TxnDate > {d'2007-12-31'} and CustomerRefListID='80000031-1197388757'

If your optimized table is up to date, then this is even faster:

select * from invoice NOSYNC where TxnDate > {d'2007-12-31'} and CustomerRefListID='80000031-1197388757'

See: How do I setup the QODBC Optimizer? Where are the Optimizer options? for more information.

 

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to