Subject | Re: [firebird-support] Rebuilding primary key index? |
---|---|
Author | Kjell Rilbe |
Post date | 2010-11-09T19:23:02Z |
Leyne, Sean skriver:
index. Is this not true? I can seee that they would have fixed
selectivity, but that is not the same as "always balanced" is it?
need to know. :-)
But you didn't ask my main question: what would you recommend that I do
with the indexes after importing this rather huge amount of data,
starting with a completely empty database?
Kjell
--
--------------------------------------
Kjell Rilbe
DataDIA AB
E-post: kjell@...
Telefon: 08-761 06 55
Mobil: 0733-44 24 64
> > Apparently it's not possible to deactivate a primary key index. SeemsI thought these indexes could become unbalanced, just like any other
> > reasonable. So, how do I rebuild it?
>
> Why do you need to rebuild it?
index. Is this not true? I can seee that they would have fixed
selectivity, but that is not the same as "always balanced" is it?
> Unlike user indexes, primary key indexes have a fixed selectivity whichOK. Interesting. I'm tempted to ask how that works, but I don't really
> means that they never become "unbalanced" -- so they never need to be
> re-indexed.
need to know. :-)
> You should be able to test for uniqueness using a simple SQL statement,Yes, but I'm using an OO framework so it's a bit complicated.
> without have to use constraints.
But you didn't ask my main question: what would you recommend that I do
with the indexes after importing this rather huge amount of data,
starting with a completely empty database?
Kjell
--
--------------------------------------
Kjell Rilbe
DataDIA AB
E-post: kjell@...
Telefon: 08-761 06 55
Mobil: 0733-44 24 64