Subject | Re: Why did a large delete make a table partially inaccessible |
---|---|
Author | Matt Clark |
Post date | 2008-07-25T11:35:34Z |
--- In firebird-support@yahoogroups.com, "Ann W. Harrison"
<aharrison@...> wrote:
don't want to hit the same problem. Our database is getting growing
pains at the minute (more on that later!) so I'm looking for more fat
to trim.
Regards,
Matt
<aharrison@...> wrote:
>Thanks Ann, I'm likely to be doing similar things again soon so I
> However, if you can drop the table (meaning there aren't procedures
> and views nested six levels deep that depend on it), you'll find
> that copying the 2 million records you want to a temporary table,
> dropping the primary table, then recreating it, reloading the data,
> then recreating the indexes is much faster than deleting 18 million
> rows.
>
> Good luck,
>
> Ann
>
don't want to hit the same problem. Our database is getting growing
pains at the minute (more on that later!) so I'm looking for more fat
to trim.
Regards,
Matt