Newsgroups: comp.databases.oracle.server
Date: Tue, 29 Jan 2008 13:36:01 -0800 (PST)
Local: Tues, Jan 29 2008 4:36 pm
Subject: Re: long running select min(timestamp) query
On Jan 29, 2:53 pm, joel garry <joel-ga...@home.com> wrote:
> On Jan 29, 6:39 am, "bobdu...@gmail.com" <bobdu...@gmail.com> wrote: I definitely have done some large scale deletes. When i say > > On Jan 28, 7:17 pm, joel garry <joel-ga...@home.com> wrote: > > > On Jan 28, 7:40 am, "bobdu...@gmail.com" <bobdu...@gmail.com> wrote: > > > > Hi, > > > > I have a basic event table in my 10g database, primary integer key, > > > > select min(eventdate) from events; > > > > It can occasionally take a VERY long time. There is a standard btree > > > Well, I'm guessing that your 20 column index is just not the best one > > > There might be bug/patch issues, too. timestamp is relatively new, > > > How are you loading this table? What is the exact definition of the > > > jg > > All the indexes on the table only span ONE column, not all! Here's > Sorry 'bout that! > Charles has bought up a good point about concurrency, and it makes me > I'm also idly wondering if delayed block cleanout can be involved > > CREATE TABLE "MYSCHEMA"."EVENTS" > > CREATE INDEX "MYSCHEMA"."EVENTS_EVENTDATE" ON > > Then there's a bunch of other indexes, 8 total, with the one above and > > CREATE INDEX "MYSCHEMA"."EVENTS_ACTION" ON > jg occasionally, there have been times when the query has been fast, but it hasn't been fast in a long time... likely since the last large scale delete operation actually. The CPU never spikes on the oracle box, its definitely always blocking on IO. Mind you, the disk is slow, but since it is occasionally speedy, i can't blame it all on disk (can i?). I just tried to get more stats via the following call, and then SQL> exec PL/SQL procedure successfully completed. SQL> analyze table events list chained rows; Table analyzed. SQL> select owner_name, table_name, count(*) no rows selected You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||