Icon View Thread

The following is the text of the current message along with any replies.
Messages 11 to 20 of 22 total
Thread CONTAINS (Full Text Index) vs LIKE ...
Wed, Aug 19 2009 4:02 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Michael,

<< Thanks, so i must have 2 index fields for doing this fast right ? (One
Index and One Text Index for the same field) >>

No, just the text index.  It should be selective enough (usually) so that
the LIKE only has to visit a few rows during its evaluation.

--
Tim Young
Elevate Software
www.elevatesoft.com

Thu, Aug 20 2009 6:08 PMPermanent Link

Charalampos Michael
Dear Tim,

> << Thanks, so i must have 2 index fields for doing this fast right ? (One
> Index and One Text Index for the same field) >>
>
> No, just the text index.  It should be selective enough (usually) so that
> the LIKE only has to visit a few rows during its evaluation.

Thanks Tim, i'll give it a try.

btw, if I add an additional Index (no text index) to the same field
shouldn't improve the performance ? (As i said i don't care about disk
space)

btw, will it produce a sensitive result ?

--
Charalampos Michael - [Creation Power] - http://www.creationpower.gr
Fri, Aug 21 2009 11:44 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Michael,

<< btw, if I add an additional Index (no text index) to the same field
shouldn't improve the performance ? (As i said i don't care about disk
space) >>

Probably not, because ElevateDB will most likely ignore the index and just
read the rows from disk anyway.  Remember, it uses fairly-accurate cost
estimates to determine the most efficient way to evaluate a particular
condition.

<< btw, will it produce a sensitive result ? >>

Sure, as long as RequestSensitive=True and you're not using an ORDER BY
clause that would force an insensitive result set.

--
Tim Young
Elevate Software
www.elevatesoft.com

Fri, Aug 21 2009 9:08 PMPermanent Link

Charalampos Michael
Dear Tim,

> << btw, will it produce a sensitive result ? >>
>
> Sure, as long as RequestSensitive=True and you're not using an ORDER BY
> clause that would force an insensitive result set.

Unfortunately i use ORDER BY ... So no solution for this right ?

--
Charalampos Michael - [Creation Power] - http://www.creationpower.gr
Sat, Aug 22 2009 3:15 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Charalampos


As long as there's an index matching the ORDER BY clause you'll get a sensitive result set

Roy Lambert [Team Elevate]
Sat, Aug 22 2009 10:11 PMPermanent Link

Charalampos Michael
Dear Roy,

> As long as there's an index matching the ORDER BY clause you'll get a sensitive result set

You're correct ... But it isn't possible to produce a sensitive result
with GROUP BY right ?

I guess GROUP BY can't produce sensitive result in any RDBS.
IOW, it's not possible and never be ... right ?

--
Charalampos Michael - [Creation Power] - http://www.creationpower.gr
Sun, Aug 23 2009 2:40 AMPermanent Link

Uli Becker
Michael,

> I guess GROUP BY can't produce sensitive result in any RDBS.
> IOW, it's not possible and never be ... right ?

As Roy told you: if there is an index on the field you are grouping the
result can be sensitive.

Uli
Sun, Aug 23 2009 3:45 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Charalampos


Correct - unless you can tell me what would be sensitive Smiley

Roy Lambert
Sun, Aug 23 2009 8:36 AMPermanent Link

Charalampos Michael
Dear Uli,

>> I guess GROUP BY can't produce sensitive result in any RDBS.
>> IOW, it's not possible and never be ... right ?
>
> As Roy told you: if there is an index on the field you are grouping the
> result can be sensitive.

Are you sure ? I just tried and the result was read-only.
(I have an index on the group field)

select * from employees
group by name

The result set was insensitive and read-only
The result set consisted of zero or more rows

--
Charalampos Michael - [Creation Power] - http://www.creationpower.gr
Sun, Aug 23 2009 8:36 AMPermanent Link

Charalampos Michael
Dear Roy,

> unless you can tell me what would be sensitive Smiley

?

--
Charalampos Michael - [Creation Power] - http://www.creationpower.gr
« Previous PagePage 2 of 3Next Page »
Jump to Page:  1 2 3
Image