Subject | Re: [firebird-support] Re: one performance/index question |
---|---|
Author | Anderson Farias |
Post date | 2009-02-02T15:21:01Z |
Hi,
select <fields> from <table>
where <some_indexed_condition>
and your_integer_field_you_do_not_want_to_use_index+0 = some_value
(..or..)
and your_varchar_field_you_do_not_want_to_use_index||'' = 'some_value'
Regards,
Anderson Farias
>hmm, and how do you do with foreign key that have only very fewYou use some sort of 'trick' like:
>value? cause foreign key automatiquelly create index !
select <fields> from <table>
where <some_indexed_condition>
and your_integer_field_you_do_not_want_to_use_index+0 = some_value
(..or..)
and your_varchar_field_you_do_not_want_to_use_index||'' = 'some_value'
Regards,
Anderson Farias