grouper-users - RE: [grouper-users] loader performance
Subject: Grouper Users - Open Discussion List
List archive
- From: Chris Hyzer <>
- To: Jon Gorrono <>
- Cc: "" <>
- Subject: RE: [grouper-users] loader performance
- Date: Fri, 12 Oct 2012 02:31:06 +0000
- Accept-language: en-US
GSH uses the API not REST calls, which means direct DB SQL… Shilen is the Grouper developer performance guru Thanks, Chris From: Jon Gorrono [mailto:]
Thanks for the response, Chris. I eventually did start the process again and watched the grouper log and it was chugging... I pared the list of users down to active accounts (a little less than 99k) and it took 4 hours to complete. Your right, indexes are probably the key... I added one to the id column in table the underlying the view, and a reran (with no membership changes) and it took 5 minutes. So that looks good I also wondered if there might be a significant lag in using gsh since it uses REST calls... eg might it be faster run as a cron job? I can't get the cron to start for some reason so I haven't tested that theory yet. Who is Shilen? On Wed, Oct 10, 2012 at 7:48 PM, Chris Hyzer <> wrote: Shilen always says to analyze your tables… try this in the grouper DB to all the grouper tables,
and I guess in your source. Is it indexed for ID and IDENTIFIER? I don’t think it should be slower if a different DB than the Grouper one, unless it is on a different continent or something. The loader will commit as it goes, so it is partially done. See how many users are in the group: select
count(*)
from grouper_memberships_lw_v
where group_name =
'test:testGroup' and list_name
= 'members' Start up that job again, and as it runs, check the progress with the count query. The first run
is always slow, since it is adding each membership, and subsequent runs will be a lot faster since it only has the diffs to do, e.g. a few dozen or hundred memberships or something Thanks, Chris From:
[mailto:]
On Behalf Of Jon Gorrono I am still down in the shallow end here :) I am a little surprised at the time it is taking to load a group with the loader I've created a simple view with subject_id and subject_source_id and defined the group in the ui and created a loader job in the group attributes to select users from the view for
the group There are about 130k users and in this case they are all being shoved into one group The source for the subjects api lookups is a different view on the same remote machine as the view used by the loader to populate the group and is using the C3p0 jdbc connection
provider The network is not likely the bottleneck, and the machines, both 'development-quality', are not top-notch but their mid-range performance is usually adequate for sane debug cycles
etc. The loader had been 40 minutes and had not yet finished when I had it was stopped (abruptly, heh) for scheduled patching. I am guessing that the struggle it is having is with the remote source for the subjects... So I guess my question is... is it really practical to have a remote subject source? Given the answer is 'yes' then there would be some better alternate questions, but I am not
sure what good ones might be right now. Any comments, questions, suggestions are welcome.
--
-- |
- [grouper-users] loader performance, Jon Gorrono, 10/10/2012
- RE: [grouper-users] loader performance, Chris Hyzer, 10/10/2012
- Re: [grouper-users] loader performance, Jon Gorrono, 10/11/2012
- RE: [grouper-users] loader performance, Chris Hyzer, 10/11/2012
- RE: [grouper-users] loader performance, Chris Hyzer, 10/12/2012
- RE: [grouper-users] loader performance, Gagné Sébastien, 10/12/2012
- Re: [grouper-users] loader performance, Jon Gorrono, 10/16/2012
- RE: [grouper-users] loader performance, Gagné Sébastien, 10/16/2012
- RE: [grouper-users] loader performance, Chris Hyzer, 10/16/2012
- Re: [grouper-users] loader performance, Jon Gorrono, 10/16/2012
- Re: [grouper-users] loader performance, Jon Gorrono, 10/16/2012
- RE: [grouper-users] loader performance, Chris Hyzer, 10/16/2012
- Re: [grouper-users] loader performance, Jon Gorrono, 10/17/2012
- RE: [grouper-users] loader performance, Chris Hyzer, 10/17/2012
- Re: [grouper-users] loader performance, Jon Gorrono, 10/16/2012
- RE: [grouper-users] loader performance, Gagné Sébastien, 10/12/2012
- Re: [grouper-users] loader performance, Jon Gorrono, 10/11/2012
- RE: [grouper-users] loader performance, Chris Hyzer, 10/10/2012
Archive powered by MHonArc 2.6.16.