wiki.techinc.nl/maintenance/archives/patch-image-user-index.sql
Matthias Mullie 792555fcee Add image.img_user, image.img_timestamp index
This will allow searching on user id instead of just the name.
This is how ContribsPager, LogPager, ... all work already.

Bug: T160415
Change-Id: I4db7bd0f917a428f40eb315246f89d49c7ae5b6a
2017-03-14 15:37:27 +01:00

8 lines
193 B
SQL

--
-- image-user-index.sql
--
-- Add user_text/timestamp index to current image versions
--
ALTER TABLE /*$wgDBprefix*/image
ADD INDEX img_usertext_timestamp (img_user_text,img_timestamp);