Sorry yes, I wrote out these answers first, but then forgot to send it
Almost all the queries appear to be on the acl, eg
SELECT * FROM ( SELECT limitquery.*,rownum limitrownum FROM ( SELECT
ACL.id from ACL, Groups, Principals, CachedGroupMembers WHERE
(ACL.RightName = âSuperUserâ OR ACL.RightName = âShowTicketâ) AND
Principals.Disabled = 0 AND CachedGroupMembers.Disabled = 0 AND
Principals.id = Groups.id AND Principals.id =
CachedGroupMembers.GroupId AND CachedGroupMembers.MemberId = â174â AND (
ACL.ObjectType = âRT::Systemâ OR (ACL.ObjectType = âRT::Ticketâ AND
ACL.ObjectId = â1062173â) OR (ACL.ObjectType = âRT::Queueâ AND
ACL.ObjectId = â7â)) AND ( ( ACL.PrincipalId = Principals.id AND
ACL.PrincipalType = âGroupâ AND (Groups.Domain = âSystemInternalâ OR
Groups.Domain = âUserDefinedâ OR Groups.Domain = âACLEquivalenceâ OR
Groups.Domain = âPersonalâ)) ) ) limitquery WHERE rownum <= 1 ) WHERE
limitrownum >= 1Something I should mention is Iâve edited the quicksearch Element to
have 4 columns, ânewâ,âOpenâ,âstalledâ and âallâ. Which will effect the
query numbers.
Well, yes. That will roughly double the number of queries weâre doing
there. I do expect that will negatively impact performance.
Acls are mostly per queue.
Switching to global acls where they make sense will also help
performance.
From what I can see though, most of the time is spent doing things other
than waiting on the database,An example from the index.html page (25 queues, non superuser)
Time to display: 5.843325
Time in Database: 1.678154
And how much time in RT code?
I expect that youâll have a lot of additional overhead when sending data
from the DB.
Thereâs a whole bunch of ACL precaching we could if you folks wanted to
contact me off list about development work.
Number of Query: 231
Where is 3.2-HEAD (not very used to subversion)
-bash-2.05b$ svn co svn://svn.bestpractical.com/rt/branches/3.2-HEAD
svn: URL âsvn://svn.bestpractical.com/rt/branches/3.2-HEADâ doesnât
exist
/branches/3.2-RELEASE
I can come up with some specifics if its more helpful (eg, just load
index.html and then Exit )
More useful is a controlled set of 20 queries of the homepage, spaced 30
seconds apart.
Jesse