Subject | Re: Index/trigger activation & de-activation |
---|---|
Author | Adam |
Post date | 2005-04-26T12:04:35Z |
--- In firebird-support@yahoogroups.com, "Eyal" <ez_bikbon@b...> wrote:
index, then you can't expect the constraint to be enforced. If you are
happy with that, drop the constraint and re-add it later.
The suggestions are not really appropriate for multi-user systems. If
you are the only user though, and the operation is very "batch
operated", then you can get better performance (due to the reasons you
listed).
>Nope, it is global command
> 1. Are the commands to de/activate indices and triggers executed in a
> transaction context?
>
> 2. If yes, then what happens if there are several transactions and inSee above
> one of them an index is de-activated? Will the other transactions
> continue to "see" and use that index?
>
> 3. Is there any way to de/activate constraint enforcing indices?Have your cake and eat it. If you want to de-activate the constraints
>
index, then you can't expect the constraint to be enforced. If you are
happy with that, drop the constraint and re-add it later.
The suggestions are not really appropriate for multi-user systems. If
you are the only user though, and the operation is very "batch
operated", then you can get better performance (due to the reasons you
listed).
> Thanks,
>
> Eyal.