Article View: borland.public.vdbase.data.sql
Article #6Re: Forcing vdb7 to use indices in sql-queries?
From: Ken Mayer
Date: Wed, 25 Feb 1998 00:00
Date: Wed, 25 Feb 1998 00:00
26 lines
1851 bytes
1851 bytes
Dirk Steinkamp wrote: > Now, in vdb7 with the new sql-query-generator it seems not possible to > force vdb to use any index (when using local sql). We have a some > databases with order-information, article-information and a large > customer-addresses linked by article-id resp. customer-id. When creating > a query with these databases it takes very much longer (very much too > long!) than in vdb5.5 (or even dBase IV for DOS!). This is also true > when the resulting view is quite small (only the customer database is a > very large one)! > It seems vdb doesn't optimize anything here and does not use an existing > index, does it? Can I force vdb to use this index? Any other > suggestions? Try just using a query object, and setting the SQL property to something like: "select * from customer". Then, set the rowset (of the query)'s indexName property to whatever index you need. Suggest reading Chapter 6 of the Developer's Guide (which ships with VdBASE 7). -- Ken[1]@Borland <Please follow-up to newsgroup; do not reply to email>
Technical Details
Message-ID:
<34F49515.16C0@borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<34F4904B.7200@ping.de>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 105c7d,d5b52dc183f66711 X-Google-Attributes: gid105c7d,public X-Google-Thread: ff5a1,d5b52dc183f66711 X-Google-Attributes: gidff5a1,public X-Google-Thread: 108edc,d5b52dc183f66711 X-Google-Attributes: gid108edc,public From: Ken Mayer <supportinfo@borland.com> Subject: Re: Forcing vdb7 to use indices in sql-queries? Date: 1998/02/25 Message-ID: <34F49515.16C0@borland.com> X-Deja-AN: 328637815 Content-Transfer-Encoding: 7bit References: <34F4904B.7200@ping.de> Content-Type: text/plain; charset=us-ascii Organization: Borland, International Mime-Version: 1.0 Reply-To: supportinfo@borland.com Newsgroups: borland.public.vdbase.data.sql,borland.public.vdbase.data.bde,borland.public.vdbase.programming