Article View: borland.public.vdbase.data.sql
Article #1151Re: SQL role in VdB Development
From: Gerald Fay
Date: Tue, 21 Apr 1998 00:00
Date: Tue, 21 Apr 1998 00:00
56 lines
2338 bytes
2338 bytes
In article <6hg47g$jb78@forums.borland.com>, richards@swmed.edu says...
> Gerald,
>
> All fingers point to the BDE. It just cannot do SQL joins on _dbf_ tables
> efficiently. If you can, try linking your dbfs in Access97 and do the same
> join - it works instantly.
>
> Hello BDE development team???
>
> Charles Richards
>
>
> Gerald Fay wrote in message ...
> >I've mentioned this on the vdb programing newsgroup, but it is more
> >appropriate to discuss this here. No development can occur in VdB until
> >one has a relative feeling for the speed of data processing. I want to do
> >this development right the first time.
> >
> >The new VdB 7 changes all the rules.
> >
> >From my own experimenting I have found SQL to be much faster than just
> >using filters, on an individual dbf. On Joins the feeling is the
> >opposite. A simple join (outer right) on two databases with about 30,000
> >entries, filtered ("where" in SQL) for a specific field (not the joined
> >field) takes about 2 minutes. While the outer right join is useful to
> >work on live data, would it be faster to do this any other SQL way?
> >
> >Just for speed comparison, using tradition DBF style rowset.findkey()
> >with the index ordered on the "filter" field then doing a lookup from the
> >"join key" (not actually joining) onto the second dbf and storing the
> >data to an array takes only 5 seconds. (40x's faster than sql)
> >
> >Is this what one should expect?
> >
> >Any pointers appreciated.
> >
> >Thanks.
> >
> >
> >--
> >Gerald Fay
> >gjfay@msn.com
>
>
>
Tried the SQL link again this time programmatically.
Keep getting index field not found.
Problem a corrupted CDX file (or BDE just doesn't like it)
After reindexing and linking using masterrowset and masterfield
2 seconds!!!
WWWOOOOWWWW!!
--
Gerald Fay
gjfay@msn.com
Technical Details
Message-ID:
<MPG.fa6062b39b2acd4989703@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<MPG.fa43b327f5fbe53989700@forums.borland.com> <6hg47g$jb78@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ff5a1,f83bbd65cbfad3 X-Google-Attributes: gidff5a1,public From: gjfay@msn.com (Gerald Fay) Subject: Re: SQL role in VdB Development Date: 1998/04/21 Message-ID: <MPG.fa6062b39b2acd4989703@forums.borland.com> X-Deja-AN: 346248118 References: <MPG.fa43b327f5fbe53989700@forums.borland.com> <6hg47g$jb78@forums.borland.com> Organization: Phase V Software Newsgroups: borland.public.vdbase.data.sql