![]() | ![]() Products ![]() ![]() ![]() ![]() |
Home » Technical Support » ElevateDB Technical Support » Support Forums » ElevateDB SQL » View Thread |
Messages 11 to 20 of 22 total |
![]() |
Wed, Aug 19 2009 4:02 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. ![]() | 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 PM | Permanent 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 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. ![]() | 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 PM | Permanent 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 AM | Permanent Link |
Roy Lambert NLH Associates ![]() | 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 PM | Permanent 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 AM | Permanent 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 AM | Permanent Link |
Roy Lambert NLH Associates ![]() | Charalampos
Correct - unless you can tell me what would be sensitive ![]() Roy Lambert |
Sun, Aug 23 2009 8:36 AM | Permanent 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 AM | Permanent Link |
Charalampos Michael | Dear Roy,
> unless you can tell me what would be sensitive ![]() ? -- Charalampos Michael - [Creation Power] - http://www.creationpower.gr |
« Previous Page | Page 2 of 3 | Next Page » |
Jump to Page: 1 2 3 |
This web page was last updated on Wednesday, August 14, 2024 at 07:31 PM | Privacy Policy![]() © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? ![]() |