Skip to content

Add EF Core storage query indexes#20

Merged
mnbuhl merged 2 commits intomainfrom
add-ef-core-storage-indexes
May 5, 2026
Merged

Add EF Core storage query indexes#20
mnbuhl merged 2 commits intomainfrom
add-ef-core-storage-indexes

Conversation

@mnbuhl
Copy link
Copy Markdown
Owner

@mnbuhl mnbuhl commented May 5, 2026

Summary

  • Adds provider-neutral EF Core indexes for hot Atomizer storage sweeps and lookups.
  • Covers due jobs, partition heads, blocked partitions, leased-job recovery, idempotency lookup, due schedules, and stale heartbeat scans.
  • Adds model metadata coverage so index names, column order, and uniqueness are locked down.

Changes

  • Added composite indexes to the job, schedule, and active-server entity configurations used by AddAtomizerEntities.
  • Kept provider SQL and storage behavior unchanged.
  • Added configuration tests using EF model metadata inspection.

Risk and rollout

  • Existing consumers that use migrations need to generate and apply an application migration after upgrading.
  • Additional indexes increase write overhead, but reduce scan cost for common polling and recovery paths in larger tables.
  • Rollback is to remove the generated consumer migration or downgrade the package.

@mnbuhl mnbuhl marked this pull request as ready for review May 5, 2026 15:17
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 5, 2026

Code Coverage

Package Line Rate Health
Atomizer 14%
Atomizer.EntityFrameworkCore 91%
Atomizer 14%
Atomizer.EntityFrameworkCore 91%
Atomizer 72%
Atomizer 14%
Atomizer.EntityFrameworkCore 91%
Atomizer 72%
Atomizer 72%
Summary 60% (7471 / 13176)

@mnbuhl mnbuhl merged commit aab911b into main May 5, 2026
1 check passed
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.

1 participant