LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-Feb-2008, 10:02 AM
Frontline
NNTP User
 
Posts: n/a
Default Very slow portal when using many shared pages

Hi,

We have a portal installation that contains hundreds of shared pages.
The page load times for this portal are in the range of seconds (1-10 sec).
I have tracked down the issue to some very slow sql-queries, one example
of which is the monstrosity below.

During one page load the query is executed 6 times and the combined time
for this query alone is over 10 seconds.
That table only contains about 10000 rows so this has taken some special
genius to get a query this slow (a select * and filtering in java would
be faster, not to talk about caching the whole table in java and using
that...)

Anyway, what is this query trying to do and how can we speed things up?
Optimizing the database (oracle) with indexes etc hasn't helped.

SELECT DISTINCT SECURITYACCESSRIGHTS.FWELEMENTIID FROM
SECURITYACCESSRIGHTS WHERE SECURITYACCESSRIGHTS.FWELEMENTIID IN (?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, 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) AND
SECURITYACCESSRIGHTS.PERMISSIONID = ? AND (SECURITYACCESSRIGHTS.IID NOT
IN(SELECT SECURITYPERMISSIONS.PERMISSIONIID FROM SECURITYPERMISSIONS
WHERE LOWER(SECURITYPERMISSIONS.PRINCIPALNAME) IN (?, ?, ?, ?, ?, ?)) OR
SECURITYACCESSRIGHTS.IID IN(SELECT SECURITYPERMISSIONS.PERMISSIONIID
FROM SECURITYPERMISSIONS WHERE SECURITYPERMISSIONS.PRINCIPALNAME = ?))

On a related note, the portal generated 102 selects during that one page
load, some caching would be nice for repetitive mainly read only
queries... Well, this product is unfortunately dying so no fixing these
issues I gather...


Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 12:08 PM.


© 2007 Novell, Inc. All Rights Reserved.

Search Engine Friendly URLs by vBSEO 3.3.0 RC2