Fixed issue where no projection is applied when there's no presets thus affecting performane

This commit is contained in:
Zaid Abdulla committed 2013-08-08 10:51:49 +03:00
1 parent c08fb47f18
commit 28f63e8c96
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -83,6 +83,7 @@ projection = (query, proj) ->
# optimize projection by removing overlaps
optimizeProjection = (obj) ->
keys = Object.keys(obj).sort()
return if keys.length <= 1
for i in [1 ... keys.length]
a = keys[i-1]
b = keys[i]