Hi All,

I have a situation where we are using the following SQL statements on large
tables:

Previous record:
SELECT TOP 1 FROM <table> WHERE <table>.Id < PrevId

Next record:
SELECT TOP 1 FROM <table> WHERE <table>.Id > PrevId

Now these run fine in Fox, a bit slow first time as expected but fine after
than.  The problem occurs when we run the same SQL from within an ASP page
which uses ADO(cProvider = "vfpoledb;"), the same SQL then becomes slow
every time, just as if the indexes were not being cached.

The other strange behaviour noticed is that going forwards through the
records seems to take twice as long for each record retrieval than going
backwards.

Any thoughts?

Nick



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/!&[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to