Article View: borland.public.vdbase.data.sql
Article #1146SQL role in VdB Development
From: Gerald Fay
Date: Sun, 19 Apr 1998 00:00
Date: Sun, 19 Apr 1998 00:00
30 lines
1504 bytes
1504 bytes
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
Technical Details
Message-ID:
<MPG.fa43b327f5fbe53989700@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ff5a1,f83bbd65cbfad3,start X-Google-Attributes: gidff5a1,public From: gjfay@msn.com (Gerald Fay) Subject: SQL role in VdB Development Date: 1998/04/19 Message-ID: <MPG.fa43b327f5fbe53989700@forums.borland.com> X-Deja-AN: 345790977 Organization: Phase V Software Newsgroups: borland.public.vdbase.data.sql