Skip to content

Conversation

@hf-kklein
Copy link
Contributor

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a covering index to the ahb_expressions table to optimize the performance of joins in the v_ahb_diff view. The covering index includes all columns used in the join condition from v_ahbtabellen (edifact_format_version, format, expression) plus the selected columns (node_texts, ahbicht_error_message), allowing the database to satisfy these queries entirely from the index without accessing the table data.

Key Changes

  • Adds SQLAlchemy Index import to support the new index definition
  • Creates a composite covering index on five columns for the ahb_expressions table

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@hf-kklein hf-kklein merged commit 6606f1e into main Dec 16, 2025
21 checks passed
@hf-kklein hf-kklein deleted the perf-expr branch December 16, 2025 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants