[Koha-devel] Item Type Images have various sizes

Galen Charlton galen.charlton at liblime.com
Thu Feb 12 17:10:44 CET 2009


Hi,

On Thu, Feb 12, 2009 at 10:57 AM, Michael Hafen
<mdhafen at tech.washk12.org> wrote:
> Given 20 search results on a page, and (currently) at most 3 items per
> results, that's about an extra 6 seconds per page load, worst case.
> That doesn't seem terrible to me.

That actually sounds rather expensive to me - six seconds is an
*eternity*. ;)  I suggest storing the dimensions in the database when
an icon is added or assigned to an itemtype or authorized_values,
rather than recalculating it every time.  Alternatively, the maximum
height and width could be stored as an attribute of the iconset.

Regards,

Galen
-- 
Galen Charlton
VP, Research & Development, LibLime
galen.charlton at liblime.com
p: 1-888-564-2457 x709
skype: gmcharlt



More information about the Koha-devel mailing list