[api] Select distinct isn't necessary anymore.
authorSascha Peilicke <saschpe@suse.de>
Fri, 22 Jul 2011 08:33:18 +0000 (10:33 +0200)
committerSascha Peilicke <saschpe@suse.de>
Fri, 22 Jul 2011 08:33:18 +0000 (10:33 +0200)
commit2a533ad772f661fdda211e1df54df51188ab0845
tree9a578ebae872ec6c9b8eca71f6902ad14ac5e6d0
parent9b8799c42a939115c704c4242676fde7b3a52c52
[api] Select distinct isn't necessary anymore.

Minor tweak, query time goes down from ~1.0ms to ~0.5ms.
Besides, converted all SQL keywords to uppercase.
src/api/app/models/user.rb