Re: [OPEN-ILS-GENERAL] 3.0.2-3.0.3 Upgrade DB script takes over a week to finish

2018-04-25 Thread Jason Stephenson
On 04/25/2018 10:57 AM, Josh Stompro wrote:
> Hello, I just noticed that the auditor table trigger is disabled during
> the visibility update, so that answers that question, it is something
> that is done.  But it seem like it has a very small performance impact. 
> On my test system reingest of 150 record batches takes 2.5% longer when
> the auditor table trigger is enabled.  So my primary reason for doing it
> would just be to avoid audit table bloat.

I have a feeling that the columns you mentioned in your previous message
were simply not added to the auditor table by omission, i.e. the
developer simply forgot to add them. Looking at their purposes, the
vis_attr_vector may not be useful to log, but the merged fields probably
should be though I'm not sure that anything would get recorded, since a
record should not get updated after it is merged.

If you think it is an omission, you should probably open a Launchpad bug.

> 
>  
> 
> I’ve been trying out GNU parallel to run a bunch of ingest updates in
> parallel.  I am seeing collisions on inserting into
> metabib.browse_entry, when two different queries each contain the same
> entry and are both trying to insert a new row.  And I saw one deadlock
> detected also.  But the joblog feature seems like it will take care of
> that, once the bulk of the queries are done, it can just resume running
> all the failed queries and just run them serially to finish up.

The browse entries cannot be done in parallel because you may end up
trying to update the record for the same entry simultaneously. This is
more or less known in the developer community, and there isn't really a
good database side fix.

That said, I wrote a script, pingest.pl, to handle ingesting
bibliographic records in parallel. It is part of my evergreen_utilities
repository on github:

https://github.com/Dyrcona/evergreen_utilities

Here's a link to the code view of the pingest utility:

https://github.com/Dyrcona/evergreen_utilities/blob/master/perl/pingest.pl

HtH,
Jason


[OPEN-ILS-GENERAL] Reports

2018-04-25 Thread Forrest, Stuart
Hi

I have a report that generate a list of DVDs that were marked lost this year. I 
now need to know which of these DVDs were paid for and which were not.

Does anyone have a report that can already do this they can share or give any 
pointers as to which route I should;d go.

Thanks
Stuart


Stuart Forrest
Library IT Analyst
Beaufort County Library
Beaufort SC, 29902
843 255 6450


Re: [OPEN-ILS-GENERAL] 3.0.2-3.0.3 Upgrade DB script takes over a week to finish

2018-04-25 Thread Josh Stompro
Hello, I just noticed that the auditor table trigger is disabled during the 
visibility update, so that answers that question, it is something that is done. 
 But it seem like it has a very small performance impact.  On my test system 
reingest of 150 record batches takes 2.5% longer when the auditor table trigger 
is enabled.  So my primary reason for doing it would just be to avoid audit 
table bloat.

I’ve been trying out GNU parallel to run a bunch of ingest updates in parallel. 
 I am seeing collisions on inserting into metabib.browse_entry, when two 
different queries each contain the same entry and are both trying to insert a 
new row.  And I saw one deadlock detected also.  But the joblog feature seems 
like it will take care of that, once the bulk of the queries are done, it can 
just resume running all the failed queries and just run them serially to finish 
up.

Josh Stompro - LARL IT Director

From: Open-ils-general 
[mailto:open-ils-general-boun...@list.georgialibraries.org] On Behalf Of Josh 
Stompro
Sent: Wednesday, April 25, 2018 8:35 AM
To: Evergreen Discussion Group 
Subject: Re: [OPEN-ILS-GENERAL] 3.0.2-3.0.3 Upgrade DB script takes over a week 
to finish


This sender failed our fraud detection checks and may not be who they appear to 
be. Learn about spoofing

Feedback

Hello again, does anyone disable the auditor table trigger for 
biblio.record_entry for updates like the 901 or a full reingest using the 1=1 
method?  I wonder if that would speed things up at all, and avoid some auditor 
table bloat.

I also noticed that the auditor table for auditor.biblio_record_entry_history 
wasn’t updated with the new biblio.record_entry columns for vis_attr_vector, 
merge_date  and merged_to.  Is that something that I’m supposed to do manually 
whenever an audited table gets altered?

Josh Stompro - LARL IT Director

From: Open-ils-general 
[mailto:open-ils-general-boun...@list.georgialibraries.org] On Behalf Of Josh 
Stompro
Sent: Tuesday, April 24, 2018 9:03 AM
To: Evergreen Discussion Group 
>
Subject: Re: [OPEN-ILS-GENERAL] 3.0.2-3.0.3 Upgrade DB script takes over a week 
to finish


This sender failed our fraud detection checks and may not be who they appear to 
be. Learn about spoofing

Feedback


Hello,  Thank you all for the great info in this thread.  I've been trying out 
some test upgrades from 2.10 -> 3.1 and  have some questions that I thought I 
would just add here.



I just want to make sure I understand which of the longer running updates do 
the same things as other updates for efficiency.

My notes on the upgrade scripts are at 
https://docs.google.com/document/d/1Rh-ei7ffm3BVeMaJSDFte6LGgP4xt5VU16YZSOJ4uzg/edit?usp=sharing



List of longer running updates

1.   2.10.7-2.11.0 – 901 field update via update set id=id method

2.   2.11.3-2.12.0 – Facet and Browse reingest  via 
metabib.reingest_metabib_field_entries

3.   2.12.0-2.12.1 – Browse reingest via 
metabib.reingest_metabib_field_entries

4.   2.12.6-3.0.0

a.   Display field reingest via metabib.reingest_metabib_field_entries

b.   Authority reingest via update set id=id method in a transaction

5.   3.0.6-3.1.0 – full reingest via update set id=id method in a function



So from what I think I understand, these updates can all be completed by 
performing the

1.   Authority reingest from 2.12.6-3.0.0.

2.   Full reingest from 3.0.6-3.1.0.  (should deal with all the indexes 
along with bre trigger updates for the 901 update).



I’m looking into breaking these updates into smaller chunks and running them in 
parallel to speed them up and allow the system to function somewhat normally.  
I usually use the pingest.pl script, but I don’t think that script would take 
care of bre trigger based updates, since I think it calls 
metabib.reingest_metabib_field_entries to perform updates just on the indices.



But I think I may run into trouble running multiple instances of each of these 
updates because of the transactions.  I’m thinking that as is, the updating of 
the config.internal_flag and “alter table” will block other transactions.



So maybe I’m better off using pingest.pl for the search re-indexing, which can 
be run in parallel, and then a simpler query for the “update set id=id on bre” 
bre trigger updates, which should skip the indexing updates.



The authority update I should maybe just run serially, cut up into smaller 
chunks of records.  Is there a pingest.pl script for authority reindexing?



Also, could someone tell me the difference between using a “DO $FUNC$” for the 
3.0.6-3.1.0 reingest verses how the 2.12.6-3.0.0 authority reingest uses 
commands in a transaction block?  Is one method superior 

Re: [OPEN-ILS-GENERAL] 3.0.2-3.0.3 Upgrade DB script takes over a week to finish

2018-04-25 Thread Josh Stompro
Hello again, does anyone disable the auditor table trigger for 
biblio.record_entry for updates like the 901 or a full reingest using the 1=1 
method?  I wonder if that would speed things up at all, and avoid some auditor 
table bloat.

I also noticed that the auditor table for auditor.biblio_record_entry_history 
wasn’t updated with the new biblio.record_entry columns for vis_attr_vector, 
merge_date  and merged_to.  Is that something that I’m supposed to do manually 
whenever an audited table gets altered?

Josh Stompro - LARL IT Director

From: Open-ils-general 
[mailto:open-ils-general-boun...@list.georgialibraries.org] On Behalf Of Josh 
Stompro
Sent: Tuesday, April 24, 2018 9:03 AM
To: Evergreen Discussion Group 
Subject: Re: [OPEN-ILS-GENERAL] 3.0.2-3.0.3 Upgrade DB script takes over a week 
to finish


This sender failed our fraud detection checks and may not be who they appear to 
be. Learn about spoofing

Feedback


Hello,  Thank you all for the great info in this thread.  I've been trying out 
some test upgrades from 2.10 -> 3.1 and  have some questions that I thought I 
would just add here.



I just want to make sure I understand which of the longer running updates do 
the same things as other updates for efficiency.

My notes on the upgrade scripts are at 
https://docs.google.com/document/d/1Rh-ei7ffm3BVeMaJSDFte6LGgP4xt5VU16YZSOJ4uzg/edit?usp=sharing



List of longer running updates

1.   2.10.7-2.11.0 – 901 field update via update set id=id method

2.   2.11.3-2.12.0 – Facet and Browse reingest  via 
metabib.reingest_metabib_field_entries

3.   2.12.0-2.12.1 – Browse reingest via 
metabib.reingest_metabib_field_entries

4.   2.12.6-3.0.0

a.   Display field reingest via metabib.reingest_metabib_field_entries

b.   Authority reingest via update set id=id method in a transaction

5.   3.0.6-3.1.0 – full reingest via update set id=id method in a function



So from what I think I understand, these updates can all be completed by 
performing the

1.   Authority reingest from 2.12.6-3.0.0.

2.   Full reingest from 3.0.6-3.1.0.  (should deal with all the indexes 
along with bre trigger updates for the 901 update).



I’m looking into breaking these updates into smaller chunks and running them in 
parallel to speed them up and allow the system to function somewhat normally.  
I usually use the pingest.pl script, but I don’t think that script would take 
care of bre trigger based updates, since I think it calls 
metabib.reingest_metabib_field_entries to perform updates just on the indices.



But I think I may run into trouble running multiple instances of each of these 
updates because of the transactions.  I’m thinking that as is, the updating of 
the config.internal_flag and “alter table” will block other transactions.



So maybe I’m better off using pingest.pl for the search re-indexing, which can 
be run in parallel, and then a simpler query for the “update set id=id on bre” 
bre trigger updates, which should skip the indexing updates.



The authority update I should maybe just run serially, cut up into smaller 
chunks of records.  Is there a pingest.pl script for authority reindexing?



Also, could someone tell me the difference between using a “DO $FUNC$” for the 
3.0.6-3.1.0 reingest verses how the 2.12.6-3.0.0 authority reingest uses 
commands in a transaction block?  Is one method superior to another?  Is the DO 
$FUNC$ method implicitly in a transaction?



Thanks



Josh Stompro - LARL IT Director





-Original Message-
From: Open-ils-general 
[mailto:open-ils-general-boun...@list.georgialibraries.org] On Behalf Of Jesse 
McCarty
Sent: Wednesday, April 04, 2018 2:10 PM
To: 'Evergreen Discussion Group' 
>
Subject: Re: [OPEN-ILS-GENERAL] 3.0.2-3.0.3 Upgrade DB script takes over a week 
to finish



Jason,



If the authority reingest is the one that runs in the 2.12.0-2.12.1 script, it 
looks like between an hour/hour and a half on our test system this morning. I 
don't know how many bib records we have, but our Database sits about 24GB if 
that helps for comparison.



Jesse McCarty

City of Burlington

Information Systems Technician





-Original Message-

From: Open-ils-general 
[mailto:open-ils-general-boun...@list.georgialibraries.org] On Behalf Of Jason 
Stephenson

Sent: Wednesday, April 04, 2018 11:58 AM

To: 
open-ils-general@list.georgialibraries.org

Subject: Re: [OPEN-ILS-GENERAL] 3.0.2-3.0.3 Upgrade DB script takes over a week 
to finish



On 04/04/2018 02:46 PM, Jesse McCarty wrote:

> Thank you Kathy,

>

> Those changes seemed to work great. What seemed to never end completed

> in about a minute, and I was able to start up Evergreen and

> search/renew and 

Re: [OPEN-ILS-GENERAL] Evergreen Oversight Board

2018-04-25 Thread Carol Yarrison
Congrats!

Carol

On Wed, Apr 25, 2018 at 9:09 AM, Gagnon, Ron  wrote:

> Congratulations to all the new officers -- and thank you!  It should be a
> busy year ahead.
> Ron
>
> On Wed, Apr 25, 2018 at 9:04 AM, Tim Spindler 
> wrote:
>
>> The board for next year is now established.  I wanted to congratulate
>> everyone who ran and Mike Rylander who will be taking over as chair.
>>
>>
>>- Mike Rylander (Chair)
>>- Scott Thomas (Vice Chair)
>>- Terran McCanna (Secretary)
>>- Jason Boyer
>>- Holly Brennan
>>- Garry Collum
>>- Ron Gagnon
>>- Anna Goben
>>- Jessica Woolford
>>
>>
>> --
>> Tim Spindler
>> tjspind...@gmail.com
>>
>> *P**   Go Green - **Save a tree! Please don't print this e-mail unless
>> it's really necessary.*
>>
>>
>>
>
>
>
> --
> Ronald A. Gagnon
> Executive Director
> North Of Boston Library Exchange (NOBLE)
> Danvers, Massachusetts  01923
> 978-777-8844
> www.noblenet.org
>



-- 
“What in the world would we do without our libraries?”
― Katharine Hepburn


Carol Yarrison
Help Desk Coordinator/Trainer
Bibliomation, Inc
24 Wooster Ave
Waterbury, CT
203-577-4070 x112


Re: [OPEN-ILS-GENERAL] Evergreen Oversight Board

2018-04-25 Thread Gagnon, Ron
Congratulations to all the new officers -- and thank you!  It should be a
busy year ahead.
Ron

On Wed, Apr 25, 2018 at 9:04 AM, Tim Spindler  wrote:

> The board for next year is now established.  I wanted to congratulate
> everyone who ran and Mike Rylander who will be taking over as chair.
>
>
>- Mike Rylander (Chair)
>- Scott Thomas (Vice Chair)
>- Terran McCanna (Secretary)
>- Jason Boyer
>- Holly Brennan
>- Garry Collum
>- Ron Gagnon
>- Anna Goben
>- Jessica Woolford
>
>
> --
> Tim Spindler
> tjspind...@gmail.com
>
> *P**   Go Green - **Save a tree! Please don't print this e-mail unless
> it's really necessary.*
>
>
>



-- 
Ronald A. Gagnon
Executive Director
North Of Boston Library Exchange (NOBLE)
Danvers, Massachusetts  01923
978-777-8844
www.noblenet.org


[OPEN-ILS-GENERAL] Evergreen Oversight Board

2018-04-25 Thread Tim Spindler
The board for next year is now established.  I wanted to congratulate
everyone who ran and Mike Rylander who will be taking over as chair.


   - Mike Rylander (Chair)
   - Scott Thomas (Vice Chair)
   - Terran McCanna (Secretary)
   - Jason Boyer
   - Holly Brennan
   - Garry Collum
   - Ron Gagnon
   - Anna Goben
   - Jessica Woolford


-- 
Tim Spindler
tjspind...@gmail.com

*P**   Go Green - **Save a tree! Please don't print this e-mail unless it's
really necessary.*


Re: [OPEN-ILS-GENERAL] Issues with evergreen slow or not logging in

2018-04-25 Thread Rogan Hamby
Hi Bill,

This is the Evergreen community listserv so most of the folks here won't be
on your shared system but on their own Evergreen installations so you will
want to contact the administrators of your system (assuming it's not a
local network issue and all that).




Rogan Hamby, MLIS

Data and Project Analyst

Equinox Open Library Initiative

phone:  1-877-OPEN-ILS (673-6457)

email:  ro...@equinoxinitiative.org
web:  http://EquinoxInitiative.org

On Wed, Apr 25, 2018 at 8:32 AM, Bill Coffey 
wrote:

> Wayne County Is having issues with evergreen giving no errors and not
> logging in.
>
> The server area gives ok, but after entering password it does not show the
> usual script running.
>
> When I tried it it took 2 minutes for the script to show it running.
>
> Is anyone else having an issue?
>
>
>
>
>
> [image: Electronic Circuit Board]
>
> Bill Coffey
>
> Systems Administrator
>
> Wayne County Public Library
>
> 1001 E. Ash St
> 
>
> Goldsboro, NC 27530
> 
>
>
>
> Phone:  (919) 735-6249
>
> Fax:  (919) 731-2889
>
> email:   bill.cof...@waynegov.com
>
>
>


[OPEN-ILS-GENERAL] Issues with evergreen slow or not logging in

2018-04-25 Thread Bill Coffey
Wayne County Is having issues with evergreen giving no errors and not logging 
in.
The server area gives ok, but after entering password it does not show the 
usual script running.
When I tried it it took 2 minutes for the script to show it running.
Is anyone else having an issue?


[Electronic Circuit Board]
Bill Coffey
Systems Administrator
Wayne County Public Library
1001 E. Ash St
Goldsboro, NC 27530

Phone:  (919) 735-6249
Fax:  (919) 731-2889
email:   bill.cof...@waynegov.com