Commit f61adbcc authored by Adam Hegyi's avatar Adam Hegyi

Enable optimized_timebox_queries by default

parent f0550cb6
...@@ -66,7 +66,7 @@ module Timebox ...@@ -66,7 +66,7 @@ module Timebox
groups = groups.compact if groups.is_a? Array groups = groups.compact if groups.is_a? Array
groups = [] if groups.nil? groups = [] if groups.nil?
if Feature.enabled?(:optimized_timebox_queries) if Feature.enabled?(:optimized_timebox_queries, default_enabled: true)
from_union([where(project_id: projects), where(group_id: groups)], remove_duplicates: false) from_union([where(project_id: projects), where(group_id: groups)], remove_duplicates: false)
else else
where(project_id: projects).or(where(group_id: groups)) where(project_id: projects).or(where(group_id: groups))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment