Skip to content

Conversation

@mamcx
Copy link
Contributor

@mamcx mamcx commented Dec 8, 2023

Description of Changes

This PR fixes the issues that cause the query optimizations to miss the opportunity to use indexes.

This is caused by several problems introduced in #596:

  • The constraints information was not read correctly
  • When a module passes the TableDef information it generates Constraints::unset() for all the columns without attributes. This causes the index information to skip them despite having indexes available

API and ABI breaking changes

This requires a database wipe

Expected complexity level and risk

1

@mamcx mamcx self-assigned this Dec 8, 2023
@mamcx mamcx added the bug Something isn't working label Dec 8, 2023
@mamcx mamcx marked this pull request as ready for review December 8, 2023 21:18
@mamcx mamcx force-pushed the mamcx/perf-header branch from 2e58ed8 to ffffc85 Compare December 8, 2023 23:23
@cloutiertyler cloutiertyler enabled auto-merge (squash) December 8, 2023 23:31
Copy link
Contributor

@cloutiertyler cloutiertyler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM assuming tests pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants