r86544 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r86543‎ | r86544 | r86545 >
Date:20:16, 20 April 2011
Author:diederik
Status:deferred
Tags:
Comment:
Use multiprocessing for the transform phase as well, updated patch
Modified paths:
  • /trunk/tools/editor_trends/etl/transformer.py (modified) (history)

Diff [purge]

Index: trunk/tools/editor_trends/etl/transformer.py
@@ -56,8 +56,8 @@
5757 return '%s' % (self.editor_id)
5858
5959 def __call__(self):
60 - self.db_raw = storage.init_database(rts.storage, rts.dbname, rts.editors_raw)
61 - self.db_dataset = storage.init_database(rts.storage, rts.dbname, rts.editors_dataset)
 60+ self.db_raw = storage.init_database(self.rts.storage, self.rts.dbname, self.rts.editors_raw)
 61+ self.db_dataset = storage.init_database(self.rts.storage, self.rts.dbname, self.rts.editors_dataset)
6262 cutoff = 9
6363 editor = self.db_raw.find_one('editor', self.editor_id)
6464 if editor == None: