Skip to Content.
Sympa Menu

grouper-users - RE: [grouper-users] upgrade db from 28 to 29 seems to hang

Subject: Grouper Users - Open Discussion List

List archive

RE: [grouper-users] upgrade db from 28 to 29 seems to hang


Chronological Thread 
  • From: "Hyzer, Chris" <>
  • To: Jim Fox <>, "Redman, Chad" <>
  • Cc: "" <>
  • Subject: RE: [grouper-users] upgrade db from 28 to 29 seems to hang
  • Date: Mon, 16 Jul 2018 17:46:36 +0000
  • Accept-language: en-US
  • Authentication-results: spf=none (sender IP is ) ;
  • Ironport-phdr: 9a23:C+215REmhX4oWxymd6jmV51GYnF86YWxBRYc798ds5kLTJ7yr8SwAkXT6L1XgUPTWs2DsrQY07SQ6/iocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbAhEmDuwbaluIBmqsA7cqtQYjYx+J6gr1xDHuGFIe+NYxWNpIVKcgRPx7dqu8ZBg7ipdpesv+9ZPXqvmcas4S6dYDCk9PGAu+MLrrxjDQhCR6XYaT24bjwBHAwnB7BH9Q5fxri73vfdz1SWGIcH7S60/VC+85Kl3VhDnlCYHNyY48G7JjMxwkLlbqw+lqxBm3oLYfJ2ZOP94c6jAf90VWHBBU95RWSJfH428c4UBAekPPelaronyu1QAohSlCAmwHePj1iNEimPq0aEk1ekqDAHI3BYnH9ILqHnYotf7NacTUO+r1qnE1SjIYu1W2Tfn6YjIaR4tquyLULJ1bcXRyUkuFgLbgVWKsoHlPiiV2fgXv2iG9+pvS+Svi2g9pw5vvzev294hh4/UjYwW0lDJ7Tt1z5wpKdGlTUN3fMOoHIZVuiGUOIZ6Xt8uTmRqtSkkxbALtpu2cS0UxJg72hLTc+GLfoaU7h75UOudPC10iGx4dL+7nRq+7Eqtx+zkWsm6zllHrTZJn9zJu38WyhDf9NOIR/5g8Uu/wzmC1gXe5+BFLE00iaXWLoQuzqAtmpUJt0nIAzX4l1/sjKCMc0Up4uio5PrjYrXhvpKSL5N5hAbiPqgwg8CxHPw2PhUXU2ic4uuzyqfv/UrkQLVWlfI2lbTZsJbHKsgBvq65GQhV0po95BmjEzem0dMYnX8dIFJCZRKHk4zpO1bJIPD7F/uwn1OskDJzy/DHOL3uHInNI2DdnLj7Ybpx9ktRxBcuwdxC4p9UBL4MLO7vVkL0ttHXEBA0PgOxzuviFtlxyp4SVXqKAqCDMaPStVGI5vgoI+mJfIIVvSryK/gl5v/vk3A5g0QQfaiy3ZQLcny4A+xmLFufYXrqmNsOD3oFvhcmQOzwlFKCSSJTZ2q1X68k6TE7EoWmDZrbRo+zmryNxTq7HoZIaWBcEVCBCnPod4SfW/cQcyKePNVtkj0CVbi9VYAhzxeuuxHmy7Z5NObb5DAXtY+wnORyss/SkFkc8iw8W8qaw0mSRnp0n2UHWzgwmq1zvBo5gh253KR9ivocXfdT7v8DGlMxNZfQ+PZ3B9X7XCrceNzPRVq7FIaIGzY0G5gR0s0DeQI1MNW4jwuJl36vCL8EhbGRLJ0v+eTBx3X3IYBwx2uQh/pptEUvXsYabT7uvaV47QWGQteRyx/Dxa+3aaQR2jLM/26fzG2I+VtVSxN0Tb6bASIEfkWDq9P/6wuCVLKoBbk9eip5gc+ZYuovCJXyiEleAvLqOdDQeWW0zmK7BQeay6mkbZHhPXgF0SPbTkUIjlNb8A==
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

Weve switched the grouper built in daemon queries to select all the data that
needs updating, then do the updates for ~200 rows at a time (since 200 is max
bind var limit in some DBs). We haven't done this for the DDL upgrades but
maybe we should discuss it. So you could use a procedural block to do this,
do you need our help to code this?

Thanks
Chris

-----Original Message-----
From:


[mailto:]
On Behalf Of Jim Fox
Sent: Monday, July 16, 2018 12:44 PM
To: Redman, Chad
<>
Cc:

Subject: RE: [grouper-users] upgrade db from 28 to 29 seems to hang


There are about 40M audit records. Any idea the best way to do the update
in pieces? I think postgres update does not support a 'limit' parameter.

Jim

On Mon, 16 Jul 2018, Redman, Chad wrote:

> Date: Mon, 16 Jul 2018 09:37:56
> From: "Redman, Chad"
> <>
> To: Jim Fox
> <>,
>
> ""
>
> <>
> Subject: RE: [grouper-users] upgrade db from 28 to 29 seems to hang
>
> Sounds like a query plan gone wrong. Are the statistics relatively recent?
>
> If there is a large number of rows in the table, the row updates may need
> to be done in small batches. Depending on the database, large scale updates
> sometimes take long because it needs to archive the pre-changed data for a
> potential rollback.
>
> -Chad
>
>
> -----Original Message-----
> From:
>
>
> [mailto:]
> On Behalf Of Jim Fox
> Sent: Thursday, July 05, 2018 12:01 PM
> To:
>
> Subject: [grouper-users] upgrade db from 28 to 29 seems to hang
>
>
> I'm doing a database upgrade and at the end of the 28->29 step it runs the
> command
>
>> update grouper_audit_entry set act_as_member_id=logged_in_member_id where
>> act_as_member_id is null and logged_in_member_id is not null;
>
>
> which seems to just sit forever. ( as in more than a day )
>
> Could I skip this step for now and finish to conversion to version 30? I
> could complete the update of the audit entries later.
>
> Would that work?
>
> Thanks,
>
> Jim
>
>



Archive powered by MHonArc 2.6.19.

Top of Page