Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

partitioning

0 views
Skip to first unread message

Daud

unread,
Oct 28, 2002, 5:02:37 AM10/28/02
to
Someone told me this:

Partitioning has no effect on performance unless the Cost Based
Optimizer is used.

Is that true? I find it a bit hard to believe but then I am not sure
since I dont know much about partitioning.

rgds
Daud

Peter

unread,
Oct 28, 2002, 8:48:45 AM10/28/02
to

"Daud" <dau...@hotmail.com> schreef in bericht
news:f0bf3cc3.02102...@posting.google.com...

Bullshit. It works very well on tables even when they don't have statstics.
You only have to make sur the indexes are partitioned too.


Jusung Yang

unread,
Oct 28, 2002, 1:53:09 PM10/28/02
to
It is mostly true. CBO is "partition aware" and so can take advatage
of the partition elimination feature. However, the performance
benefits gained from breaking up an big object into smaller pieces and
placing them on everal physical devices is not limited to CBO, of
course. With RBO, you can do that without partitioning - basically
create a union view on several smaller tables. Partitioning just makes
it easier for you.

Performance is just one of the benetifs one gained from partitioning.
Both CBO and RBO can benefit from high availability (since partition
can be managed individually) and ease of administration with
partitioining.

That said, it is likely nobody will be talking about RBO anymore in
the not too distant future. So the whole discussion may become moot..


- Jusung Yang


dau...@hotmail.com (Daud) wrote in message news:<f0bf3cc3.02102...@posting.google.com>...

Richard Foote

unread,
Oct 28, 2002, 7:26:23 PM10/28/02
to
Hi Daud,

The RBO and myself have a number of things in common, the most obvious being
that we are fast approaching our used by date. However another thing we are
both rather hopeless at is pruning. I have killed more roses than I would
like to admit and the RBO wouldn't know how to perform partition pruning on
a partitioned table if it's life depended on it (which I guess it does). The
RBO also wouldn't have the foggiest notion on using an effective
partition-wise join.

Therefore from a purely performance point of view, the RBO is kinda
buggered.

Cheers

Richard
"Daud" <dau...@hotmail.com> wrote in message
news:f0bf3cc3.02102...@posting.google.com...

Peter

unread,
Oct 29, 2002, 11:14:20 AM10/29/02
to
I know companies that never use CBO, just because statistics slow down
performance if they aren't taken regularly. If only one table of a user has
statistics taken from it, it grately reduces speed of all other tables
queries under RBO. In general an oracle database can perform very well
without statistics and CBO. The example I talk about is a system with tables
less than 100000 rows some with queries joining tables on date basis. I saw
a query improve from seven seconds to less than 1 or 2 secs just by
partitioning the tables and the indexes, without statistics and CBO.

"Richard Foote" <richar...@bigpond.com> schreef in bericht
news:3wjv9.64478$g9.1...@newsfeeds.bigpond.com...

Pablo Sanchez

unread,
Oct 29, 2002, 11:26:35 AM10/29/02
to
"Peter" <dep...@yahoo.com> wrote in
news:wtyv9.184779$8o4....@afrodite.telenet-ops.be:

> I know companies that never use CBO, just because statistics slow
> down performance if they aren't taken regularly. If only one table
> of a user has statistics taken from it, it grately reduces speed of
> all other tables queries under RBO. In general an oracle database
> can perform very well without statistics and CBO. The example I talk
> about is a system with tables less than 100000 rows some with
> queries joining tables on date basis. I saw a query improve from
> seven seconds to less than 1 or 2 secs just by partitioning the
> tables and the indexes, without statistics and CBO.

The ironic part is that in your example above, it's an excellent
candidate for RBO: relatively small datasets so analyzes can be run
periodically without affecting the online system.

The 'issues' (and I intend that in quotes) with RBO is when your
datasets span in the giga and terabyte range, if not greater. Some
RDBMS vendors allow one to output the statistics from one database to
a file, which can then be imported to another database. The beauty
here is that if you are mirroring your instances, you can run the
statistics on your backup, and upload them into your primary.

I expect Oracle to mimic Sybase's behavior relatively soon -- they
'borrow' everything else, so why not? <g>
--
Pablo Sanchez, High-Performance Database Engineering
http://www.hpdbe.com

kenneth....@no-spam.hotmail.com

unread,
Oct 29, 2002, 1:31:57 PM10/29/02
to
FYI: Oracle has provided a neat Statistics export/import
functionality since 8i.....

- Kenneth Koenraadt

Howard J. Rogers

unread,
Oct 29, 2002, 1:57:06 PM10/29/02
to

"Pablo Sanchez" <pa...@dev.null> wrote in message
news:Xns92B661070A14C...@209.189.89.243...

Well, they've been doing it since at least 8.1.6. Check out dbms_stats.
There's an export_<xxx>_stats and import_<xxx>_stats procedure. Grab
statistics from one table or schema into a 'stats table' using the right
export.... procedure, use boring old 'exp' export to pipe the statsistics
table into a traditional dump file, transfer the dump file to another
database, use 'imp' to import the statistics table into the new database,
and use the import_<xxx>_.... procedure to transfer the statistics out of
the statistics table into the data dictionary.

Voila.

Even more interestingly, you can use the dbms_stats.SET_<xxx>_statistics
procedure to completely make up statistics for objects -to claim, for
example, that a 14-row table (mentioning no names) actualy has 14 billion
rows in it, and to get the optimiser to behave accordingly.

DBMS_STATS is a seriously sexy package (and I probably need to get a life).

Regards
HJR

Pablo Sanchez

unread,
Oct 29, 2002, 1:54:31 PM10/29/02
to
"Howard J. Rogers" <howard...@yahoo.com.au> wrote in news:WJAv9.65255
$g9.1...@newsfeeds.bigpond.com:

>
> DBMS_STATS is a seriously sexy package (and I probably need to get a
> life).

You and me both!

Thx for the info!!!

D.Y.

unread,
Oct 29, 2002, 3:12:14 PM10/29/02
to
Thought I read somewhere that Oracle automatically uses cost based
optimizer when it encounters partitioned tables. Never tested it
since I've always used CBO.

0 new messages