[api] rework the way we filter involved projects to make it both
authorStephan Kulow <coolo@suse.de>
Thu, 21 Jul 2011 14:56:17 +0000 (16:56 +0200)
committerStephan Kulow <coolo@suse.de>
Thu, 21 Jul 2011 15:28:30 +0000 (17:28 +0200)
commit4125c04e352c599355143ae375ca1dd86a252c7f
treed5cbc24c4d183ef8315402e620916fc02668642a
parent28b48ffa0619b7e7c37ef8190f641e3265b5fa0c
[api] rework the way we filter involved projects to make it both
more readable to developers and mysql parsers (the later bringing
a speedup of factor 30)

osc my rq for coolo goes down from 7.8s to 3.3s
(most of this is backend query now)
src/api/app/controllers/request_controller.rb
src/api/app/models/user.rb