lib/dexter/indexer.rb in pgdexter-0.5.3 vs lib/dexter/indexer.rb in pgdexter-0.5.4
- old
+ new
@@ -187,9 +187,11 @@
end
def create_hypothetical_indexes(queries)
candidates = {}
+ reset_hypothetical_indexes
+
# get initial costs for queries
calculate_plan(queries)
explainable_queries = queries.select { |q| q.plans.any? && q.high_cost? }
# filter tables for performance