Index: trunk/phase3/includes/api/ApiQueryCategoryMembers.php |
— | — | @@ -83,7 +83,12 @@ |
84 | 84 | $this->addWhere('cl_from=page_id'); |
85 | 85 | $this->setContinuation($params['continue'], $params['dir']); |
86 | 86 | $this->addWhereFld('cl_to', $categoryTitle->getDBkey()); |
87 | | - $this->addWhereFld('page_namespace', $params['namespace']); |
| 87 | + # Scanning large datasets for rare categories sucks, and I already told |
| 88 | + # how to have efficient subcategory access :-) ~~~~ (oh well, domas) |
| 89 | + global $wgMiserMode; |
| 90 | + if (!$wgMiserMode) { |
| 91 | + $this->addWhereFld('page_namespace', $params['namespace']); |
| 92 | + } |
88 | 93 | if($params['sort'] == 'timestamp') |
89 | 94 | $this->addWhereRange('cl_timestamp', ($params['dir'] == 'asc' ? 'newer' : 'older'), $params['start'], $params['end']); |
90 | 95 | else |