select * from table1 where firstname like 'dfg%'
response time : 4 seconds
select * from table1 where firstname like 'abc%'
response time : 3.5 minutes
if i enter a select statement to display names which begins with 3 any
letters, i get results in a few seconds
if i want to display results which begin with 'abc%' it takes several
minutes (the same amount of time as if i search by nonkey field)
Can anyone answer why!
regards iztok
If most of your [firstname] start with 'abc', then the optimiser
suggests a table scan. If not, try rebuilding the index.
--
I am Greeks and I speak England very best,
TZOTZIOY, ICQ# 13397953
Favourite spammers this week: ipro...@mihacienda.com expr...@bigfoot.com in...@yingleegifts.com.hk lea...@fiberia.com
regards Iztok
Chris Georgiou - TZOTZIOY wrote in message ...
Select LastName From TableName With Index(IndexName) Where LastName Like
'ABC%'
Hope this helps.
> snip <
> is it possible to customize this optimizer behavior. I was looking at sql
> help and they dont say much about that.
>
> snip <
x.x. <tv...@mail.com> wrote in message
news:YBI54.59$2s1....@news.siol.net...
> hi!
> thank you for answer . it may be so but i have random generated database
> with quite equal firstnames started with 'ABC' or 'BCD' or 'EFV'. it is
> slow only on 'ABC'
> is it possible to customize this optimizer behavior. I was looking at sql
> help and they dont say much about that.
>