🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.vdbase.data.sql
Article #1333

Re: LookupSQL and Indexes

#1333
From: Steve Koterski
Date: Wed, 04 Feb 1998 00:00
23 lines
1686 bytes
On Wed, 04 Feb 1998 08:22:13 -0700, Lane Coddington <Lane@VolSoft.com>
wrote:

>Thanks. So if I have a table with 3 tags in a production index, one of
>which is on UPPER( name ) and my SQL SELECT statement includes ORDER BY
>NAME, it will automatically use the table's index to speed up ordering
>of the SQL SELECT result? If so, that's cool.

Probably not. Local SQL (the SQL subset the BDE uses for dBASE and Paradox
tables) will use existing dBASE single-field primary and secondary indexes.
But it cannot use expression indexes to boost the speed of query result set
retrieval.

So if the ORDER BY clause references a NAME column, for an index to be used
it must be based on the NAME column only and use no dBASE data manipulation
language (DML) functions (like UPPER).

**************************************************************************
Steve Koterski
Borland International, Inc.
http://www.borland.com/delphi
(Remove the "SPICEDHAM2" from the address. Death to spam-bots!)
Technical Details
Message-ID: <34d9a630.3637531@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <34D7D3FE.91E89A6D@VolSoft.com> <01bd3178$d4ad36c0$1030f489@jyuzamas.robins.af.mil> <34D887A5.C9529277@VolSoft.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: ff5a1,ffda3a0d031bab69
X-Google-Attributes: gidff5a1,public
From: koterski@SPICEDHAM2borland.com (Steve Koterski)
Subject: Re: LookupSQL and Indexes
Date: 1998/02/04
Message-ID: <34d9a630.3637531@forums.borland.com>
X-Deja-AN: 322047011
Content-Transfer-Encoding: 7bit
References: <34D7D3FE.91E89A6D@VolSoft.com> <01bd3178$d4ad36c0$1030f489@jyuzamas.robins.af.mil> <34D887A5.C9529277@VolSoft.com>
Content-Type: text/plain; charset=us-ascii
Organization: Borland International, Technical Publications
Mime-Version: 1.0
Reply-To: koterski@SPICEDHAM2borland.com
Newsgroups: borland.public.vdbase.data.sql