mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
optimization : instead of reading each $conf['calendar_datefield'] for
matching YEAR() and MONTH(), use of SQL statement BETWEEN ... AND ... on the date field + new index image_i5 on date_creation (default date field for calendar) git-svn-id: http://piwigo.org/svn/trunk@612 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -145,7 +145,8 @@ CREATE TABLE phpwebgallery_images (
|
||||
KEY images_i2 (date_available),
|
||||
KEY images_i1 (storage_category_id),
|
||||
KEY images_i3 (average_rate),
|
||||
KEY images_i4 (hit)
|
||||
KEY images_i4 (hit),
|
||||
KEY images_i5 (date_creation)
|
||||
) TYPE=MyISAM;
|
||||
|
||||
--
|
||||
|
||||
Reference in New Issue
Block a user