You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Roberto Rossi <ro...@cone.it> on 2012/01/11 11:16:23 UTC

reduce queries for user preferences lookup - Jetspeed 2.1.2

Hi everyone, using Jetspeed 2.1.2 (we know we should upgrade ASAP!) we 
are experiencing some performance issues in loading and rendering psml 
pages due to many queries like these:

SELECT 
A0.NODE_ID,A0.PARENT_NODE_ID,A0.NODE_NAME,A0.NODE_TYPE,A0.FULL_PATH,A0.CREATION_DATE,A0.MODIFIED_DATE 

FROM PREFS_NODE A0
WHERE (A0.FULL_PATH = '/portlet_entity/<fragid>/anon') AND A0.NODE_TYPE = 0
;

SELECT 
A0.PROPERTY_VALUE_ID,A0.NODE_ID,A0.PROPERTY_NAME,A0.PROPERTY_VALUE,A0.CREATION_DATE,A0.MODIFIED_DATE 

FROM PREFS_PROPERTY_VALUE A0
WHERE A0.NODE_ID = <nodeid>
;

These two tables are growing big, there are many users registered in the 
portal (about 6000), and the number of nodes and properties is high:
PREFS_PROPERTY_VALUE ~ 150.000 records
PREFS_NODE ~ 600.000 records

It seems that Jetspeed, for every fragment, is looking for user 
preferences and properties.
Is there a way to avoid these queries?
All of our fragments have readonly preferences; can we stop Jetspeed 
looking for prefs using the attribute readOnly="true" in preference tag 
of fragments?

Our Jetspeed installation is in a Linux Ubuntu 64bit server and a MySql 
5.1 database server.

Thank you for your support!

ROb




Re: reduce queries for user preferences lookup - Jetspeed 2.1.2

Posted by Roberto Rossi <ro...@cone.it>.
OK.

Thank you very much for your help David!

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: reduce queries for user preferences lookup - Jetspeed 2.1.2

Posted by David Sean Taylor <da...@gmail.com>.
On Jan 13, 2012, at 2:01 AM, Roberto Rossi wrote:

> Thanks David! I'll read the migration guide to upgrade our 2.1.2 Jetspeed installation to 2.1.4.
> Together with database changes, are there also some changes to the Jetspeed files? I think that database changes should reflect changes in the Java code, right?
> 
Yes, the 2.1.4 code will require the database schema changes outlined in the migration guide. 

> What about the attribute readOnly of preferences in fragments? Could be useful to set it to "false"?

Changing the prefs to ReadOnly won't help the 2.1.4 preferences storage issue. Still recommend 2.1.4 migration to address the problem
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: reduce queries for user preferences lookup - Jetspeed 2.1.2

Posted by Roberto Rossi <ro...@cone.it>.
Thanks David! I'll read the migration guide to upgrade our 2.1.2 
Jetspeed installation to 2.1.4.
Together with database changes, are there also some changes to the 
Jetspeed files? I think that database changes should reflect changes in 
the Java code, right?

What about the attribute readOnly of preferences in fragments? Could be 
useful to set it to "false"?

ROb



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: reduce queries for user preferences lookup - Jetspeed 2.1.2

Posted by David Sean Taylor <da...@gmail.com>.
Im surprised to hear 2.1.2 requires a database hit per request, something doesn't seem right there. I recommend upgrading to 2.1.4. 2.1.4 addresses a lot of performance and memory issues. See the migration guide for details

http://portals.apache.org/jetspeed-2/guide-migration.html

On Jan 11, 2012, at 2:16 AM, Roberto Rossi wrote:

> Hi everyone, using Jetspeed 2.1.2 (we know we should upgrade ASAP!) we are experiencing some performance issues in loading and rendering psml pages due to many queries like these:
> 
> SELECT A0.NODE_ID,A0.PARENT_NODE_ID,A0.NODE_NAME,A0.NODE_TYPE,A0.FULL_PATH,A0.CREATION_DATE,A0.MODIFIED_DATE 
> FROM PREFS_NODE A0
> WHERE (A0.FULL_PATH = '/portlet_entity/<fragid>/anon') AND A0.NODE_TYPE = 0
> ;
> 
> SELECT A0.PROPERTY_VALUE_ID,A0.NODE_ID,A0.PROPERTY_NAME,A0.PROPERTY_VALUE,A0.CREATION_DATE,A0.MODIFIED_DATE 
> FROM PREFS_PROPERTY_VALUE A0
> WHERE A0.NODE_ID = <nodeid>
> ;
> 
> These two tables are growing big, there are many users registered in the portal (about 6000), and the number of nodes and properties is high:
> PREFS_PROPERTY_VALUE ~ 150.000 records
> PREFS_NODE ~ 600.000 records
> 
> It seems that Jetspeed, for every fragment, is looking for user preferences and properties.
> Is there a way to avoid these queries?
> All of our fragments have readonly preferences; can we stop Jetspeed looking for prefs using the attribute readOnly="true" in preference tag of fragments?
> 
> Our Jetspeed installation is in a Linux Ubuntu 64bit server and a MySql 5.1 database server.
> 
> Thank you for your support!
> 
> ROb
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org