Re: Unique index access path seems very slow
Date: Sun, 12 Feb 2023 22:16:44 +0000
Message-ID: <CAGtsp8=UBeGnwiUEfUQ22j8PvAGVXXtGhWaBn+vddWF+radAtA_at_mail.gmail.com>
Yudhi,
I don't think there's a "best practice" as such. There are several details
that might need to be balanced in any particular situation. My immediate
response to 256 hash partition is that it sounds a little high for the
requirement, especially since it also has to apply to the sub-partitions of
a composite partitioned table.
I will be writing some notes on the business of how partition size might
affect the efficiency of the hash join - but the symptom being displayed in
this case was more due to the optimizer's ESTIMATE of the rows in the build
table rather than the actual number of rows, and my initial thought is that
a much smaller number of hash partitions would still mean the Bloom filter
could be small enough to be very useful.
Regards
On Sat, 11 Feb 2023 at 04:22, yudhi s <learnerdatabase99_at_gmail.com> wrote:
> And Jonathan, I am curious as OP also asked, what should be the optimal
Jonathan Lewis
> number of hash partitions in this scenario for the tab_encrypt table. Is
> there any best practice for deciding that or it's hit and trial only? Not
> sure if you missed, OP has posted the 10104 hash join traces in one of the
> reply.
>
>
>>>>>>>>
>>>>>>>>
-- http://www.freelists.org/webpage/oracle-lReceived on Sun Feb 12 2023 - 23:16:44 CET