Unionize the mega query - It needed more performance-based benefits

This commit is contained in:
Joseph Schorr 2015-10-07 10:00:12 -07:00
parent c3a411cd63
commit e8cb359d96
5 changed files with 41 additions and 36 deletions

View file

@ -251,9 +251,6 @@ def get_visible_repositories(username, namespace=None, page=None, limit=None, in
if limit:
query = query.limit(limit)
if namespace:
query = query.where(Namespace.username == namespace)
return query