Skip to content

Commit

Permalink
Fixed issue with processing over 500 query fingerprints (introduced i…
Browse files Browse the repository at this point in the history
…n 0.5.3)
  • Loading branch information
ankane committed Mar 12, 2024
1 parent 352b90c commit c14a921
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.5.4 (unreleased)

- Fixed issue with processing over 500 query fingerprints (introduced in 0.5.3)

## 0.5.3 (2024-03-05)

- Fixed error with hypothetical index limit
Expand Down
2 changes: 2 additions & 0 deletions lib/dexter/indexer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ def calculate_plan(queries)
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? }
Expand Down

0 comments on commit c14a921

Please sign in to comment.