Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] Maintenance on Grouper PIT tables

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] Maintenance on Grouper PIT tables


Chronological Thread 
  • From: Shilen Patel <>
  • To: Reid Watson <>
  • Cc: "" <>
  • Subject: Re: [grouper-users] Maintenance on Grouper PIT tables
  • Date: Tue, 21 Nov 2017 17:46:52 +0000
  • Accept-language: en-US
  • Authentication-results: oit.duke.edu; spf=none
  • Ironport-phdr: 9a23:jxXJ7B29krs2AJ5csmDT+DRfVm0co7zxezQtwd8ZseITKPad9pjvdHbS+e9qxAeQG96Ku7Qc06L/iOPJYSQ4+5GPsXQPItRndiQuroEopTEmG9OPEkbhLfTnPGQQFcVGU0J5rTngaRAGUMnxaEfPrXKs8DUcBgvwNRZvJuTyB4Xek9m72/q89pDXYAhEniaxba9vJxiqsAvdsdUbj5F/Iagr0BvJpXVIe+VSxWx2IF+Yggjx6MSt8pN96ipco/0u+dJOXqX8ZKQ4UKdXDC86PGAv5c3krgfMQA2S7XYBSGoWkx5IAw/Y7BHmW5r6ryX3uvZh1CScIMb7Vq4/Vyi84Kh3SR/okCYHOCA/8GHLkcx7kaZXrAu8qxBj34LYZYeYP+d8cKzAZ9MXXWpPUNhMWSxdDI2ybIUAD+sdMulXtITyvUcCrR6kCAWwHu7iyDlFjWL2060g1OQhFBnL0hEgH9IPtHTbstP1P7oIX++v0KnH0zHDZO5R1Dfm6IjIcxQhru+KXb9rbMXR1EovGB3fglqOtIPlIiqY2+IQuGaV6OpgUPigi28hqwxpozivwNsshZfThoIT1F/E6Tt1zJwrKtKlVU52Z8OvHphItyyCKod7Qt0uT3tmtSog17ELupq2cDIUxJko2xLTc+GLfoiW7h75WuudOzl1iX1/dL+xnxq+71Ssx+/mWsS70VtGtDdJn9jCu3wXyhDf98mKR/1g9Um7wzmPzRrc6uRcLEA0i6XbL5khz6Y1lpUJsETDGjb6mEr4jaOPa0kp9fKk6+PmYrX6vJOTKpJ0igLgPag0hMOwHPk4PhAPX2id5+u8yKXu8VD5TblUlPE7nLPVvI3ZKMkfvKK1HQBY3po75xa6FTim0dAYnXcdLFJCfRKKl5PpO1HPIPD8E/i/hU+hnyp2x/DFILLtGIvCIWXekLv5Z7Zy91ZcyBYvzdBY/59UBasBIPXuWk/pqtPYFAY1MxGvw+n5EtV9zZgTWWaOAq+CLKPSqkGE6vguI+mKeI8apiz9K/476P7yk3M1g0EScrS03chfVHftJPlnLw2maGb3hdFJRX0HvwZ4U+X2k1qEeTdObHW2VqQwoDgwToS0W9TtXIeo1YeB3SO2GNVub3xLDhjYCnfpc4iCc/sRay/UL8N8xG9XHYO9QpMsgEn9/DTxzKBqe6+NonUV
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

In general, you can’t truncate those tables unless you’re doing it temporarily (e.g. migrating databases) and plan to sync it back up.  But old data can be deleted after the objects in the non-PIT tables are deleted.  There’s some information about that here:

 

https://spaces.internet2.edu/display/Grouper/Point+in+Time+Auditing

 

- Shilen

 

On 11/21/17, 1:18 AM, " on behalf of Reid Watson" < on behalf of > wrote:

 

    Hi Everyone,

    

    Im a newbie to the Grouper Application but I was looking for some advice around Grouper PIT tables, were currently in the process of importing over 900 000 groups / sub groups into Grouper, were noticing the following tables are

    consuming all of the free disk space (72Gb) , for example

    

    select count(*) from grouper_pit_groups;

    617648

   

    select count(*) from grouper_pit_group_set;

    7232276

   

    select count(*) from grouper_pit_members;

    617671

   

    select count(*) from grouper_pit_memberships;

    1586755

   

    Questions

    

    - Before we start our bulk import of the groups is it possible to disable the writes to the PIT tables — we would enable after the import was complete  (I don’t believe this will be possible but wanted to check)

    - Or after the import is complete is it advisable to truncate the PIT tables, if so is there be a simple way to mange the constraints by either dropping / disabling the constraints on the following tables

    

    - GROUPER_PIT_ATTR_ASSN_ACTN

    - GROUPER_PUT_ATTR_ASSN_ACTN_SET

    - GROUPER_PIT_ATTR_ASSN_VALUE

    - GROUPER_PIT_ATTR_DEF_NAME

    - GROUPER_PIT_ATTR_DEF_NAME_SET

    - GROUPER_PIT_ATTRIBUTE_ASSIGN

    - GROUPER_PIT_ATTRIBUTE_DEF

    - GROUPER_PIT_FIELDS

    - GROUPER_PIT_GROUP_SET

    - GROUPER_PIT_GROUPS

    - GROUPER_PIT_MEMBERS

    - GROUPER_PIT_MEMBERSHIPS

    - GROUPER_PIT_ROLE_SETS

    - GROUPER_PIT_STEMS

   

    - Or is it a better option to stop the Grouper Loader so it won’t write to the PIT tables while were running a large bulk import

    

    Cheers

   

    Reid




Archive powered by MHonArc 2.6.19.

Top of Page