Hi
I have added two indexes:
ALTER TABLE items ADD INDEX (relative_path_cache);
ALTER TABLE items ADD INDEX (relative_url_cache);
It reduced time of rendering an album index page (140 images) from ~34 to ~17 seconds. Gallery is quite big, 37576 rows in "items".
Maybe these indexes should be created by default?
Regards
Michał
Posts: 27300
Good idea.
Please create a ticket: https://sourceforge.net/apps/trac/gallery/newticket and perhaps create a fork on github with your changes and it will make it into future releases faster.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team