adds index for tag searches by an uploader

This commit is contained in:
Caleb Forbes Davis V 2011-07-10 23:36:21 -05:00
parent 04a9515064
commit 272469daf5

View File

@ -88,6 +88,13 @@ MEDIAENTRY_INDEXES = {
# Indexing on uploaders and when media entries are created.
# Used for showing a user gallery, etc.
'index': [('uploader', ASCENDING),
('created', DESCENDING)]},
'uploader_tags_created': {
# Indexing on the media uploader, the associated tags, and timestamp
# Used for showing media items matching a tag search, most recent first.
'index': [('uploader', ASCENDING),
('tags', DESCENDING),
('created', DESCENDING)]}}