Greetings all,
I'm running into a performance problem with one of my scripts, and I'm
wondering if anyone has any advice they'd care to share with me...
I'm accessing a visual foxpro database that is an ODBC data source using
Empressa 3.96 on an XP box running at 2Ghz with plenty of disk space.
Here's the origin of the performance problem (in pseudo code):
<MvOPEN>
<MvWHILE>
<MvOPENVIEW QUERY = "SELECT time FROM db1 WHERE value = '&[someValue]'">
<MvASSIGN NAME = "l.time" VALUE = "{ d.time }">
<MvCLOSEVIEW>
</MvWHILE>
<MvCLOSE>
Everything works fine, aside from the performance issue. If I don't do
the lookup, the script executes 4 times more quickly.
All I need to do is look up one value for each time the loop iterates,
but I can't use MvFIND since it's an ODBC database. The documentation
says that <MvQUERY> is only for use with sql queries that don't return
anything, like CREATE. Is there a better way to do this, or am I locked
into the poor performance?
Thanks,
- Roque
Comment