Subject | RE: [firebird-support] Slow performance with Index |
---|---|
Author | Alan McDonald |
Post date | 2005-02-03T02:07:47Z |
> I have a table with 14 million records in it. As part of certainJust to add to Adam's comments, you need a way to batching up these 7
> operations
> I need to do against the records I flag them individually as part
> of a que.
> I am using a field called DNC_QUED which is a VarChar(1) and
> ASCII character
> set. I have non-unique index on just the field alone. There are no null
> values and the only values are '1' or '0'.
>
> When I pull a SELECT FIELD1 FROM TABLE1 WHERE DNC_QUED = '1' and
> attempt to
> fetch all records it takes a very long time (30 minutes plus). I checked
> the plan and it is using the index.
>
> Is there anything I can do to increase the performance of that select
> statement?
>
> Thanks, Ed
million records. Its never going to happen quickly. Think of the line
traffic alone. The server in this contextx will quickly outrun the ability
to deliver the 7 million records.
BTW for a field like this it's better to use a CHAR(1) and not a varchar.
Alan