Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion long running select min(timestamp) query
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
joel garry  
View profile  
 More options Jan 28 2008, 7:17 pm
Newsgroups: comp.databases.oracle.server
From: joel garry <joel-ga...@home.com>
Date: Mon, 28 Jan 2008 16:17:52 -0800 (PST)
Local: Mon, Jan 28 2008 7:17 pm
Subject: Re: long running select min(timestamp) query
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,
> and a nonnull timestamp "eventdate" field.  When executing the
> following command:

> select min(eventdate) from events;

> It can occasionally take a VERY long time.  There is a standard btree
> index on "eventdate", and roughly 20 other columns, a few of which
> also have basic btree indexes.

Well, I'm guessing that your 20 column index is just not the best one
for your min.  What happens if you make a btree index on just that
eventdate column?  It's been my experience that any table with more
than a few columns in an index isn't properly normalized.

There might be bug/patch issues, too.  timestamp is relatively new,
and you are using an unpatched base release.

How are you loading this table?  What is the exact definition of the
index?

jg
--
@home.com is bogus.
http://www.spacefem.com/hydrox/


 
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.