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: Jim Fox <>
  • To: "Redman, Chad" <>
  • Cc: "" <>
  • Subject: RE: [grouper-users] upgrade db from 28 to 29 seems to hang
  • Date: Mon, 16 Jul 2018 09:43:58 -0700 (PDT)
  • Ironport-phdr: 9a23:f/LktxPLXC5QlrMK6Kkl6mtUPXoX/o7sNwtQ0KIMzox0LfX7rarrMEGX3/hxlliBBdydt6oazbKO+4nbGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1Ov71GonPhMiryuy+4ZLebxlJiTanfb9+MAi9oBnMuMURnYZsMLs6xAHTontPdeRWxGdoKkyWkh3h+Mq+/4Nt/jpJtf45+MFOTav1f6IjTbxFFzsmKHw65NfqtRbYUwSC4GYXX3gMnRpJBwjF6wz6Xov0vyDnuOdxxDWWMMvrRr0vRz+s87lkRwPpiCcfNj427mfXitBrjKlGpB6tvgFzz5LIbI2QMvd1Y6HTcs4ARWdZUMhfVzJPDJ6+YIUMAeoOM+lXoJXmqlsSsRezHxWgCP/1xzNWgHL9wK000/4mEQHDxAEuG9MOsHHJp9v1M6cTXv2+wa7GzTXEYPJbwjn855LTchAhoPGMW71wcdbWyUkpDQ/KkEifqZH8Mj6Ty+8DsHCb4vJ9We+gl2IrsRx9rzexyss2lIXEiI0YxkrZ+Sh5w4s5Pdy1RUphbdOgDZdcrT+WOoR2T884R2xlvjsxxKcctp6hZicKzYwqxx7BZPyDdIiF+hfjVemWITdlmHJpZr2yiwyu/ke61uLwTMe130xRripFk9nMsH8N1wDU6siBUPdy4Fqu2SuX2wDS7OFLP1w0mLLGJ5Mu3rI8jIcfvEvdEiPshkn7gqCbel859uWo6OnrerDmqYWdN49whAH+KKMumsmnDOQ2NQgPUHOW+Oqm2734/U35QbNKjvIqkqnetpDWP9oUqbOkAwNNyIYs9w6/Dyu60NQfhXQHI0hFeBWaj4jxJV7OOun0Deqkg1uyijdr3OvLPrngApXWMnjDi6ntcax8605a1Ao808pf55RKBbEdPv7/QFH+u8HFDkxxDwvhidzqBNB00MdWcmKGDuXRZKjSuFO//O8jJuCKTJITs3DwJ+VztND0inpsu14YNYeuzdNDZneoNutvOEWYZ3XwhdFHHGsX6FltBNf2gUGPBGYAL025WLgxs3RiUNqr


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