[#6290] Minimize data loaded for listing galleries
Summary Minimize data loaded for listing galleries
Queue Ansel
Type Enhancement
State Resolved
Priority 1. Low
Owners mrubinsk@horde.org
Requester duck@obala.net
Created 2008-02-19 (4633 days ago)
Due
Updated 2008-02-20 (4632 days ago)
Assigned
Resolved 2008-02-20 (4632 days ago)
Milestone
Patch No

Comments
Duck <duck@obala.net> 2008-02-19 17:25:59
In a common usage, no filtering galleries by attributes is sued (for 
example browsing the default gallery list). So we do not need to read 
ID values from DB. We can just count the number of galleries 
assessable by current user. This can be done by not reading any data 
from DB just using Datatree::countValuesByAttributes()  from bug #6289.



Numbers?

84k galleries, just counting and selecting the first page

current Ansel : 11,17 sec, memory used 13,37 MB.

patch applied: 7,67 sec, memory used 6,55 MB



Chuck Hagenbuch <chuck@horde.org> 2008-02-19 21:21:48
Accepted pending request 6289.

Michael Rubinsky <mrubinsk@horde.org> 2008-02-20 20:27:54
Committed with just some small phpdoc tweaks.



Thanks!