Bug 113480 - Versions.getCreationTxn/getLastTxn methods are very slow
Summary: Versions.getCreationTxn/getLastTxn methods are very slow
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Web Application Framework
Classification: Retired
Component: other
Version: nightly
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bryan Che
QA Contact: Jon Orris
URL:
Whiteboard:
: 113673 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-01-14 13:55 UTC by Daniel Berrangé
Modified: 2007-04-18 17:01 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-08-03 18:33:43 UTC
Embargoed:


Attachments (Terms of Use)
DB explain plan for the problem queries (2.43 KB, text/plain)
2004-01-14 13:55 UTC, Daniel Berrangé
no flags Details

Description Daniel Berrangé 2004-01-14 13:55:24 UTC
Description of problem:
On a mildly loaded DB (8000 content items), the
c.a.versioning.Versions.getCreationTxn/getLastTxn methods are very
slow, taking around 400ms to complete. Amongst other things, these
methods are used by the implementation of the Auditing interface in
VersionedACSObject. So if you call the sequence
 
  item.getLastModifiedUser()
  item.getLastModifiedDate()
  item.getLastModifiedIP()
  item.getCreationUser()
  item.getCrwationDate()
  item.getCreationIP()

Then the page will take 400x6 = 2.4 seconds just getting auditing data.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Daniel Berrangé 2004-01-14 13:55:52 UTC
Created attachment 96969 [details]
DB explain plan for the problem queries

Comment 2 Richard Li 2004-01-14 13:59:41 UTC
which database / version?

Comment 3 Daniel Berrangé 2004-01-14 14:03:16 UTC
PG 7.3.4 (as distributed with RHEL AS 3). I've also run a full vaccuum
analyze, but it made no improvement.


Comment 4 Richard Li 2004-01-15 17:41:13 UTC
One other question: How often is the page containing these API calls
used by the user?

(i.e., is it high priority, or are there other performance issues you
think should be addressed first?)

Comment 5 Daniel Berrangé 2004-01-15 17:56:25 UTC
Its the CMS item summary page which is fairly important as its in the
critical path for CMS authors. That said, Randy committed patch 39404
that removes use of versioning for storing auditing info, so its no
longer much of an issue. I'm not sure if any other code uses
getCreationTxn/getLastTxn.....

Comment 6 Daniel Berrangé 2004-01-20 12:22:11 UTC
*** Bug 113673 has been marked as a duplicate of this bug. ***

Comment 7 Vadim Nasardinov 2005-08-03 18:33:43 UTC
stale


Note You need to log in before you can comment on or make changes to this bug.