adds "state" to tags indices
This commit is contained in:
parent
1580c7c5ce
commit
cea8f2b632
@ -90,17 +90,19 @@ MEDIAENTRY_INDEXES = {
|
|||||||
'index': [('uploader', ASCENDING),
|
'index': [('uploader', ASCENDING),
|
||||||
('created', DESCENDING)]},
|
('created', DESCENDING)]},
|
||||||
|
|
||||||
'uploader_tags_created': {
|
'state_uploader_tags_created': {
|
||||||
# Indexing on the media uploader, the associated tags, and timestamp
|
# Indexing on processed?, media uploader, associated tags, and timestamp
|
||||||
# Used for showing media items matching a tag search, most recent first.
|
# Used for showing media items matching a tag search, most recent first.
|
||||||
'index': [('uploader', ASCENDING),
|
'index': [('state', ASCENDING),
|
||||||
|
('uploader', ASCENDING),
|
||||||
('tags', DESCENDING),
|
('tags', DESCENDING),
|
||||||
('created', DESCENDING)]},
|
('created', DESCENDING)]},
|
||||||
|
|
||||||
'tags_created': {
|
'state_tags_created': {
|
||||||
# Indexing media tags, and timestamp (across all users)
|
# Indexing on processed?, media tags, and timestamp (across all users)
|
||||||
# This is used for a front page tag search.
|
# This is used for a front page tag search.
|
||||||
'index': [('tags', DESCENDING),
|
'index': [('state', ASCENDING),
|
||||||
|
('tags', DESCENDING),
|
||||||
('created', DESCENDING)]}}
|
('created', DESCENDING)]}}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user