Re: Optimizer problem?

From: Abu M Rahman <arahman_at_nko.com>
Date: 1997/10/10
Message-ID: <343E7C67.6C50A36F_at_nko.com>#1/1


You will have to reset the high watermark for this table..

1. export the table
2. truncate the table
3. import it back with ignore=Y

The problem will go away.....

Phil Tsao wrote:

> Hi,
>
> I was wondering if any one has experienced the same problem.
> I have a loop to add 10,000 rows to a table one by one then another loop
>
> to delete each row one by one. After doing so a few times, the
> "select count(*) from table" starts doing table scan ( and physical
> read)
> every time. I thought the index (on primary key) was corrupted due to
> the massive insert & delete and rebuilt it. It did not help.
> The only way I can force using index is to use hint or the following:
>
> select count(*) from table where pkey > -9999;
>
> Is there anything you know that causes this to happen?
> Thanks in advance.
>
> --
> Phil Tsao
> philt_at_technologist.com

--
-------------------------------------------------------------------
Abu M Rahman                     | PHONE: (904) 737-3181 ext. 237
Database Administrator           | FAX  : (904) 739-1984
NKO, Inc.                        | Email: arahman_at_nko.com
-------------------------------------------------------------------
Received on Fri Oct 10 1997 - 00:00:00 CEST

Original text of this message