r85093 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r85092‎ | r85093 | r85094 >
Date:21:51, 31 March 2011
Author:diederik
Status:deferred
Tags:
Comment:
Added indexes to title collection.
Modified paths:
  • /trunk/tools/editor_trends/etl/store.py (modified) (history)

Diff [purge]

Index: trunk/tools/editor_trends/etl/store.py
@@ -100,6 +100,8 @@
101101 collection = mongo[rts.articles_raw]
102102 db.add_index_to_collection(rts.dbname, rts.articles_raw, 'id')
103103 db.add_index_to_collection(rts.dbname, rts.articles_raw, 'title')
 104+ db.add_index_to_collection(rts.dbname, rts.articles_raw, 'ns')
 105+ db.add_index_to_collection(rts.dbname, rts.articles_raw, 'category')
104106
105107 location = os.path.join(rts.input_location, rts.language.code, rts.project.name, 'txt')
106108 fh = file_utils.create_txt_filehandle(location, 'titles.csv', 'r', rts.encoding)