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 : Slow performance with a twistSearch Forum

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

 New Topic 
 
 Post Reply 
[1]  
 Slow performance with a twist 
 Author   Message 
  JB 
  
 Group: Members 
 Posts: 1 
 Joined: 2007-01-11 
 Profile
 Posted : 2007-01-12 01:24:40
Here's the situation: I have two queries 1) a simple pull from the InvoiceLinkedTxn table that groups by TxID and sums the payments and pulls the max payment date.  I'm using a jumpin of TxnDate to set my range. 2) The second query pulls information from the invoice table and is linked to query 1 also with a jumpin of TxnDate range.  The big query is used for a report in MS Access.  The QuickBooks version is 2004 Pro.

The issue is that during development, I copied the files locally to make things quicker, but when I switched the tables around so the queries were looking at the live linked tables bad things starting happening.  First, it took over 10 minutes to even have the report come up and when it did, the report displayed a no data error look.  I only tried to run a report with the query as my data source and did not open the query in the query grids in Access (I know better).  I had turned on monitoring and it appears to be stuck on the Invoice table. 

I'm thinking that I should just write a script that would pull the QB data to a local Access table and then let the report feed off the local table.  Any thoughts out there? 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-01-12 09:26:56

Interesting, but you haven't provided a single example of your queries. So I'm going to jump-in and say the quickest way to do anything is to run a single query (and in the case of MS Access - run the query as a pass-through query).

This query will extract infromation from the Invoice and InvoiceLinkedTxn tables using the QODBC optimizer (by use of the NOSYNC tag) for maximum speed:

SELECT Invoice.CustomerRefFullName, Invoice.RefNumber, InvoiceLinkedTxn.TxnID,
InvoiceLinkedTxn.LinkedTxnTxnType, InvoiceLinkedTxn.LinkedTxnTxnID,
InvoiceLinkedTxn.LinkedTxnTxnDate as Date, InvoiceLinkedTxn.LinkedTxnRefNumber as Number,
InvoiceLinkedTxn.LinkedTxnAmount as Amount, InvoiceLinkedTxn.BalanceRemaining as Balance
from Invoice NOSYNC, InvoiceLinkedTxn NOSYNC
where Invoice.TxnID=InvoiceLinkedTxn.TxnID
and Invoice.TxnDate >= {d'2007-01-01'}
order by Invoice.CustomerRefFullName

If you don't see recent information, resync the optimized tables by running:

sp_optimizeupdatesync Invoice

sp_optimizeupdatesync InvoiceLinkedTxn

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to