Return-Path: <oracle-l-bounce@freelists.org>
X-Original-To: oracle-l@orafaq.com
Delivered-To: oracle-l@orafaq.com
Received: from turing.freelists.org (turing.freelists.org [206.53.239.180])
 by malta2546.startdedicated.com (Postfix) with ESMTPS id 48D451006965DE
 for <oracle-l@orafaq.com>; Wed,  6 Jun 2018 01:35:36 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 3FA0224875;
 Tue,  5 Jun 2018 19:35:35 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1528241735;
 bh=n6HJztiyJeOSLScTdCp/kSL+NGfTf3lOTQiIhuBMoHo=;
 h=From:Date:Subject:To:Reply-To:List-help:List-unsubscribe:List-Id:
	 List-subscribe:List-owner:List-post:List-archive;
 b=E9Qhlgpg6Zu7KMsQqpxAWVLC/e76UC3NKDixjoIArz2sgEb/CAzcVfxIWp7dg3nuN
	 qk//Rp1PY3I0hFYEpEZ+UHL2gVlaUwNKMSosOlIvezV8obNigd0AuqQ5KJZBc1rJ79
	 vrMZMy01EQg/yhV6T6MO6Kl2dT3qV9sbiy/DJ4po=
X-Virus-Scanned: Debian amavisd-new at turing.freelists.org
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id iwhKhUXgqNB6; Tue,  5 Jun 2018 19:35:35 -0400 (EDT)
Received: from turing.freelists.org (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 5D4A8247ED;
 Tue,  5 Jun 2018 19:35:18 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1528241730;
 bh=n6HJztiyJeOSLScTdCp/kSL+NGfTf3lOTQiIhuBMoHo=;
 h=From:Date:Subject:To:Reply-To:List-help:List-unsubscribe:List-Id:
	 List-subscribe:List-owner:List-post:List-archive;
 b=YXooO7dtn4O7ldMDA7qlAP996nSM7KsSYiatdCsZho9QpIAe2fL3o5IY/IzsAsiaY
	 7t4NbqAF2v/eLXlE3Oyvub/ccIospiRcTchaDCI+gpo1C0VNmcFBXdYMue0rokbmkK
	 kgLd6xw5xiC2obVOSYSJLtEI9cEJ/VXgYo6HU19I=
Received: with ECARTIS (v1.0.0; list oracle-l); Tue, 05 Jun 2018 19:33:56 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 918FC247B7
 for <oracle-l@freelists.org>; Tue,  5 Jun 2018 19:33:56 -0400 (EDT)
Authentication-Results: turing.freelists.org; dkim=pass
 reason="2048-bit key; unprotected key"
 header.d=gmail.com header.i=@gmail.com header.b=NP8lMfbQ;
 dkim-adsp=pass; dkim-atps=neutral
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id vdKIGkCFXFSt for <oracle-l@freelists.org>;
 Tue,  5 Jun 2018 19:33:56 -0400 (EDT)
Received: from mail-lf0-f54.google.com (mail-lf0-f54.google.com [209.85.215.54])
 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
 (No client certificate requested)
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 302CF2471C
 for <oracle-l@freelists.org>; Tue,  5 Jun 2018 19:33:56 -0400 (EDT)
Received: by mail-lf0-f54.google.com with SMTP id y20-v6so6250899lfy.0
        for <oracle-l@freelists.org>; Tue, 05 Jun 2018 16:33:56 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
        bh=lC89pIlFwhMI/qgDOgFnZmTE+lIamVheST/BoqhBQ0g=;
        b=CAzwGL/Hk37hL2dw1pWVL78G9g8kJR8I5r9YBAlvGxDQmPqzIgWfLYxz86Fcs6DRDn
         TyY1XgoV14PhjrFtCn1D2bXOW8jzr5XbnustkO26Q0XmgtAdSWHPQSsqouJrQxvvCM0A
         BnvIgz7DjqhJEEGGXix5gB+1+UeXk9rbV7+4LEnIFn6mLNRaZsjkR05eL9T2tDrB/RGO
         K8gGNp3j6WRIAHs94bW64kQ+bzgf/THbFf6HdkBF3IqsRb6UjZjz+Gt/giuX6yjSN8/Y
         dL6prAoTluVokJOtQlIEsqK8N6KBcm0SaaZPDB9E/mTvwTFQGSsme5Shs7PUBo7WUClA
         vUZg==
X-Gm-Message-State: APt69E19cwRTwdC8cHbitpWX0XBY6JF478mlWwduPz7pDbcm+aVewsYI
 IiOBmg2QKGnf3+xsQ9aC/sjnmnbRH1WF3W6Cw0w=
X-Google-Smtp-Source: ADUXVKIruz6K3semRTKYl45JOXleHzl3s4VWs3Fcq+VV/lRmxm8oGYZVrCKMP3zbn3EBf1mhOc47i1Z+tyOnu87BH0Q=
X-Received: by 2002:a2e:3613:: with SMTP id d19-v6mr383807lja.31.1528241634680;
 Tue, 05 Jun 2018 16:33:54 -0700 (PDT)
MIME-Version: 1.0
Received: by 2002:a2e:4d03:0:0:0:0:0 with HTTP; Tue, 5 Jun 2018 16:33:54 -0700 (PDT)
From: Woody McKay <woody.mckay@gmail.com>
Date: Tue, 5 Jun 2018 19:33:54 -0400
Message-ID: <CAAxONsSQ4b0BObL9_p_dKCCJJA42dtsx8-ptt3EsGRSqCJvrcw@mail.gmail.com>
Subject: Would you hash partition a hash'ed column?
To: ORACLE-L <oracle-l@freelists.org>
Content-Type: multipart/alternative; boundary="000000000000c42424056ded7b6c"
X-archive-position: 71638
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: woody.mckay@gmail.com
Precedence: normal
Reply-To: woody.mckay@gmail.com
List-help: <mailto:ecartis@freelists.org?Subject=help>
List-unsubscribe: <oracle-l-request@freelists.org?Subject=unsubscribe>
List-software: Ecartis version 1.0.0
List-Id: oracle-l <oracle-l.freelists.org>
X-List-ID: oracle-l <oracle-l.freelists.org>
List-subscribe: <oracle-l-request@freelists.org?Subject=subscribe>
List-owner: <mailto:>
List-post: <mailto:oracle-l@freelists.org>
List-archive: <http://www.freelists.org/archives/oracle-l>
X-list: oracle-l
--000000000000c42424056ded7b6c
Content-Type: text/plain; charset="UTF-8"

Hi gurus,

Oracle 12.1.0.2 on Exadata...

Got a VLDB. Various tables are updated/inserted daily from various data
sources. The table from one source has roughly 8 billion records. The table
is currently range/interval partitioned on the rec update date/timestamp.
However, the PK and column used for the incoming data source upsert is a
hash key that's about 30 chars long and made up of digits and alphas.

Have the thought of changing the partition to be a hash partition of the PK
column that contains a hash'ed value.  Does anyone have any thoughts on if
that would make sense of if there are any pros or cons for hashing
partitioning a hash value?

Update. I found out that records older than x years are never updated, so
we've moved them to a history table. That took the rec count down from 8
billion to about 750 million. That has helped performance much, but still
wondering about hash partitioning the hash key...

-- 
Thanks for any thoughts...

Woody

--000000000000c42424056ded7b6c
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi gurus,<div><br></div><div>Oracle 12.1.0.2 on Exadata...=
</div><div><br></div><div>Got a VLDB. Various tables are updated/inserted d=
aily from various data sources. The table from one source has roughly 8 bil=
lion records. The table is currently range/interval partitioned on the rec =
update date/timestamp.=C2=A0 However, the PK and column used for the incomi=
ng data source upsert is a hash key that&#39;s about 30 chars long and made=
 up of digits and alphas.</div><div><br></div><div>Have the thought of chan=
ging the partition to be a hash partition of the PK column that contains a =
hash&#39;ed value.=C2=A0 Does anyone have any thoughts on if that would mak=
e sense of if there are any pros or cons for hashing partitioning a hash va=
lue?</div><div><br></div><div>Update. I found out that records older than x=
 years are never updated, so we&#39;ve moved them to a history table. That =
took the rec count down from 8 billion to about 750 million. That has helpe=
d performance much, but still wondering about hash partitioning the hash ke=
y...=C2=A0<br clear=3D"all"><div><br></div>-- <br><div class=3D"gmail_signa=
ture" data-smartmail=3D"gmail_signature"><div>Thanks for any thoughts...<br=
><br>Woody</div></div>
</div></div>

--000000000000c42424056ded7b6c--
--
http://www.freelists.org/webpage/oracle-l


