Skip to content

Commit

Permalink
SED-3499 Plan table performance issue with many hidden plans (#333)
Browse files Browse the repository at this point in the history
  • Loading branch information
david-stephan authored Oct 17, 2024
1 parent 8df3260 commit 9f35ef2
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ public class PlanAccessorImpl extends AbstractAccessor<Plan> implements PlanAcce

public PlanAccessorImpl(Collection<Plan> collectionDriver) {
super(collectionDriver);
createIndexIfNeeded();
}

private void createIndexIfNeeded() {
createOrUpdateIndex("visible");
}

@Override
Expand Down

0 comments on commit 9f35ef2

Please sign in to comment.