Subject | Re: Fbserver eating CPU...not taking advantage of memory |
---|---|
Author | Svein Erling Tysvær |
Post date | 2005-05-23T11:49:05Z |
--- In firebird-support@yahoogroups.com, "Aaron Abend" wrote:
to confuse the optimizer so much that it came up with a hopeless plan
(almost like "Hm, two identical unique indexes - let's go natural").
Set
> Set,Yes, that and knowing that having duplicate indexes in Firebird used
>
> Regarding your comment
>
> "If ID is a primary key (PK), then this index is at best useless."
>
> I assume that if you create a primary key on a table that Firebird
> creates a unique index to support that primary key. This is how the
> other databases I use work. Is that why you say the index on ID is
> useless (because it would be a duplicate index)?
to confuse the optimizer so much that it came up with a hopeless plan
(almost like "Hm, two identical unique indexes - let's go natural").
> All of our indexes are on values with relatively high cardinality,Great, that makes things simpler.
> so we do not have a lot of duplicates in the value column (this is
> just a simplified example anyway).
Set