Creating a users dashboard results in a high number of sql selects
------------------------------------------------------------------
Key: JBPORTAL-2464
URL:
https://jira.jboss.org/jira/browse/JBPORTAL-2464
Project: JBoss Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Portal Core
Affects Versions: 2.7.2 Final
Reporter: Martin Putz
Assignee: Thomas Heute
Fix For: 2.7.3 Final
Creating a users dashboard results in a high number of the following sql selects issued
against the database:
select portalobje0_.PK as PK64_0_, portalobje0_.LISTENER as LISTENER64_0_,
portalobje0_4_.INSTANCE_REF as INSTANCE2_72_0_, case when portalobje0_1_.PK is not null
then 1 when portalobje0_2_.PK is not null then 2 when portalobje0_3_.PK is not null then 3
when portalobje0_4_.PK is not null then 4 when portalobje0_.PK is not null then 0 end as
clazz_0_, declaredpr1_.OBJECT_KEY as OBJECT1_2_, declaredpr1_.jbp_VALUE as jbp2_2_,
declaredpr1_.NAME as NAME2_, modes2_.PK as PK3_, modes2_.name as name3_, windowstat3_.PK
as PK4_, windowstat3_.name as name4_ from JBP_PORTAL_OBJECT portalobje0_ left outer join
JBP_CONTEXT portalobje0_1_ on portalobje0_.PK=portalobje0_1_.PK left outer join JBP_PORTAL
portalobje0_2_ on portalobje0_.PK=portalobje0_2_.PK left outer join JBP_PAGE
portalobje0_3_ on portalobje0_.PK=portalobje0_3_.PK left outer join JBP_WINDOW
portalobje0_4_ on portalobje0_.PK=portalobje0_4_.PK left outer join
JBP_PORTAL_OBJECT_PROPS declaredpr1_ on portalobje0_.PK=declaredpr1_.OBJECT_KEY left outer
join JBP_PORTAL_MODE modes2_ on portalobje0_.PK=modes2_.PK left outer join
JBP_PORTAL_WINDOW_STATE windowstat3_ on portalobje0_.PK=windowstat3_.PK where
portalobje0_.PK=?
This results in bad performance when testing with a high number of portal objects.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira