grouper-dev - [grouper-dev] RE: Possible performance issue with HSQLDB...
Subject: Grouper Developers Forum
List archive
- From: "Redman, Chad" <>
- To: "Black, Carey M." <>, "Hyzer, Chris" <>
- Cc: "" <>
- Subject: [grouper-dev] RE: Possible performance issue with HSQLDB...
- Date: Tue, 16 Oct 2018 20:16:47 +0000
- Accept-language: en-US
- Authentication-results: spf=none (sender IP is ) ;
- Ironport-phdr: 9a23:vLHZHBxMZCdK5GnXCy+O+j09IxM/srCxBDY+r6Qd0uoVKfad9pjvdHbS+e9qxAeQG9mDtLQc06L/iOPJYSQ4+5GPsXQPItRndiQuroEopTEmG9OPEkbhLfTnPGQQFcVGU0J5rTngaRAGUMnxaEfPrXKs8DUcBgvwNRZvJuTyB4Xek9m72/q99pHPYQhEniaxba9vJxiqsAvdsdUbj5F/Iagr0BvJpXVIe+VSxWx2IF+Yggjx6MSt8pN96ipco/0u+dJOXqX8ZKQ4UKdXDC86PGAv5c3krgfMQA2S7XYBSGoWkx5IAw/Y7BHmW5r6ryX3uvZh1CScIMb7Vq4/Vyi84Kh3SR/okCYHOCA/8GHLkcx7kaZXrAu8qxBj34LYZYeYP+d8cKzAZ9MXXWpPUNhMWSxdDI2ybIUPAOgAPelEoIfyqEADrQenBQWwGO/j1iNEimHw0KYn0+ohCwbG3Ak4Et4ArHrbssj6NKIIXuCz1KXD0CvOb/NM1jjg5oTDbxcsru2MXb1qbMXe0VMvGB3YgVWVs4PlOSiY1vkLs2eH9eZvS/+gi3M+pgx3vzOhyMAsiozTiYIUzFDJ7T55wIEoJd2iVEF0f9CkEJxKtyGVKYR6WMUiTH90uCs817YIuoa7cTAUxJs92xLTdvmKf5WV7h7+UeuRLzh1iG55dL+6iRa970etx+L5W8Sx0VtGsjRKnsHRun0M2RHf8NaLR/tz80u71juC1Brf5v9aLU06jabbJYAuz70smpcWtEnOHjL6mEv0gaKTdEgo5Oal5/rib7r7p5KRNI55hwTkPakghsOyA+I1ORUUUWeB4+Szzrjj8FX5QLpUiv02lbHUvojGKMocuqK1HRZZ3Js75RqiFjum188XkmcdIFJCZRKHk5PmO1bTIPD+EPizmUyskC1sx/DaILLuHonNLnnEkLfnZ7p97FNcyBY3zdBY4JJUCasNL+70Wk/0rNDYDxk5PBKow+v/FtlyzJ8SVX+KD6OELa/erFqF5uwgLuWQeIMYvTj9JOYq6vPhiHI0nF4QcbW30pcPbXC3BPVmI0GXYXr2hdcBFH8HsRY+TOPwlVKNSSRTaGivUKI5/D47DpmrDZrFRo+xmrCOwjq0HoBOamBcFl+MCWvod5mDW/oUZyKSOMhhkiEcVbe/UY8tzAyhuxHky7d8KurU+zYYtY741NRr/eHTlBcy9SBqAMSH1WGCUX10kn0SSzAowa9/vB819lDWm4J8ivdbUZR47ulEQ08fc9SUm+Z+AtvxHFubJf+OU0vgT9m7V3V5BPIg0dIUJw5WG8+jlVqLiy+hA64HmqajBYc/tL/E0n73Yctx1iCV+rMmigxseMZDMGSgwuZU9wHfTcadmEWQm5GweKgZ1Sjl6WGIi2eCoRcLA0ZLTazZUCVHNQPtptPj6xaHFuf2U+51OxZdycOENqpBY8HoilMDXvr4JdDCeDzryXyoC0OOwbWBJMrxdmMR0T+VKXBMkhtbvBPkfRM7Gj/npmvfCDJ0Ele6aEPl/d5kpX++R0kc0geBKUBtyun99w==
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
Carey, is this with Grouper 2.3.0 which uses hsqldb 2.3.3? I did see some
kind of issue (https://sourceforge.net/p/hsqldb/bugs/1449/ - #1449 DROP
CONSTRAINT causes SQLIntegrityConstraintViolationException) but that wasn't a
performance issue. When we ran the full suite of tests in Grouper 2.3,
performance problems did eventually appear midway during the 4-hour run.
Queries gradually took longer and longer in general, until it became
unusable. If you stop and restart the database, does it perform better?
Are you doing the action as a wheel user or non-wheel? The query looks like
it could be checking permissions but I can't tell with the placeholders.
Hibernate creates the query as a cross join but it should get rewritten by
the rdbms as long as there is a join clause between the two tables.
If you query EXPLAIN PLAN FOR {the original query} it should tell you what
it's trying to do. Maybe it chose the wrong table as the driving table.
-Chad
-----Original Message-----
From:
[mailto:]
On Behalf Of Black, Carey M.
Sent: Tuesday, October 16, 2018 2:01 PM
To: Hyzer, Chris
<>
Cc:
Subject: [grouper-dev] Possible performance issue with HSQLDB...
Chris, (et. al.)
I have a test instance that is currently still using the HSQLDB. ( I know...
I am going to reset the env and move to a "real DB" ... soon...)
But I found that when a group is being added as a member of another group
this SQL takes a very long time to execute:
select member0_.id as id1_24_,
member0_.hibernate_version_number as hibernat2_24_,
member0_.subject_id as subject_3_24_,
member0_.subject_source as subject_4_24_,
member0_.subject_type as subject_5_24_,
member0_.context_id as context_6_24_,
member0_.subject_identifier0 as subject_7_24_,
member0_.sort_string0 as sort_str8_24_,
member0_.sort_string1 as sort_str9_24_,
member0_.sort_string2 as sort_st10_24_,
member0_.sort_string3 as sort_st11_24_,
member0_.sort_string4 as sort_st12_24_,
member0_.search_string0 as search_13_24_,
member0_.search_string1 as search_14_24_,
member0_.search_string2 as search_15_24_,
member0_.search_string3 as search_16_24_,
member0_.search_string4 as search_17_24_,
member0_.name as name18_24_,
member0_.description as descrip19_24_
from grouper_members member0_ cross join grouper_memberships_all_v
membership1_
where membership1_.owner_group_id=? and membership1_.field_id=?
and membership1_.member_id=member0_.id and
membership1_.immediate_mship_enabled='T'
Maybe this is the "performance issue" that you have seen from time to time in
the test scripts?
( "cross join" sounds.... like a bad idea on any system of any size.)
Maybe this is just a hibernate on HSQLDB issue? Maybe not?
Hope that helps.
--
Carey Matthew
- [grouper-dev] Possible performance issue with HSQLDB..., Black, Carey M., 10/16/2018
- Re: [grouper-dev] Possible performance issue with HSQLDB..., Michael Douglass, 10/16/2018
- RE: [grouper-dev] Possible performance issue with HSQLDB..., Black, Carey M., 10/16/2018
- [grouper-dev] RE: Possible performance issue with HSQLDB..., Redman, Chad, 10/16/2018
- [grouper-dev] RE: Possible performance issue with HSQLDB..., Hyzer, Chris, 10/31/2018
- Re: [grouper-dev] Possible performance issue with HSQLDB..., Michael Douglass, 10/16/2018
Archive powered by MHonArc 2.6.19.