Subject | Re: index on RDB$RELATION_CONSTRAINTS |
---|---|
Author | alex_vnru |
Post date | 2002-01-25T17:18:10Z |
--- In ib-support@y..., "Krzysztof Dyczkowski" <k.dyczkowski@a...>
wrote:
amount is small, index can decrease performance, but in complex
databases it should significantly increase it. I can't say exactly
what is "small", you can check it on your database. But my own
practice shows that for databases of common complexity indexes by
RDB$FOREIGN_KEY on RDB$INDICES and by RDB$RELATION_NAME on
RDB$RELATION_CONSTRAINTS are very useful.
If you want to implement additional indexes on system tables, you
should know that you must re-create them after each backup/restore,
gbak don't create them.
Best regards, Alexander V.Nevsky.
wrote:
> Adding index on field RDB$RELATION_NAME can improve performance ofquery?
> I'm asking because performance analysis reports on every querynon-indexed
> reads from this table.Krzysztof, it depends on amount of tables in your database. If this
amount is small, index can decrease performance, but in complex
databases it should significantly increase it. I can't say exactly
what is "small", you can check it on your database. But my own
practice shows that for databases of common complexity indexes by
RDB$FOREIGN_KEY on RDB$INDICES and by RDB$RELATION_NAME on
RDB$RELATION_CONSTRAINTS are very useful.
If you want to implement additional indexes on system tables, you
should know that you must re-create them after each backup/restore,
gbak don't create them.
Best regards, Alexander V.Nevsky.