Subject Re: [firebird-support] Index Selectivity
Author Aage Johansen
On Mon, 8 Dec 2003 12:26:03 +0000 (UTC), Tim Ledgerwood wrote:

> ...
> Index IDX_LOGSTOCK (3)
> Depth: 3, leaf buckets: 1120, nodes: 179393
> Average data length: 0.00, total dup: 178416, max dup: 32723
> ...


These max dups of 32000 and more will probably come back and kill
performance on deletes (and updates?). Consider Svein Erling's advice of
changing index definitions to something like
CREATE INDEX IDX_LOGSTOCK ON LOG(STOCK, The PrimaryKey)
It won't help SELECTs, but can do wonders for DELETEs.


--
Aage J.