Subject | Re: Performance with indices |
---|---|
Author | Adam |
Post date | 2006-04-03T23:14:14Z |
--- In firebird-support@yahoogroups.com, "amoradell" <amoradell@...>
wrote:
means that for every value in the index, there are (on average) 5
records that contain this value. The lower the selectivity, the more
useful it is. A selectivity of 1 indicates a perfect one value to one
record match. Primary keys by definition require this. Therefore,
every primary key index and 'unique' constraint index will always
have a selectivity of 1, regardless of the number of records in the
table.
Adam
wrote:
>10
> Hi,
>
> I have to load several thousands records in a database through text
> files of about 100000 records each.
>
> The records are put into several tables (about 20 with one exceding
> million records).also
>
> For performance reasons, I must deactivate almost every index and
> triggers.statistics
>
> I have only primary keys activated to avoid duplicates.
>
> I want to know if these indices on primary keys have their
> up to date or do I have to recompute them between each file toSelectivity is a measure of index duplicates. A selectivity of 5
> maintain good performance ?
>
> Thanks
>
> Alexandre
>
means that for every value in the index, there are (on average) 5
records that contain this value. The lower the selectivity, the more
useful it is. A selectivity of 1 indicates a perfect one value to one
record match. Primary keys by definition require this. Therefore,
every primary key index and 'unique' constraint index will always
have a selectivity of 1, regardless of the number of records in the
table.
Adam