Skip to content

♻️ Move to DBContextPool#1548

Open
zacharykeeping wants to merge 4 commits intomainfrom
dbcontext-pool
Open

♻️ Move to DBContextPool#1548
zacharykeeping wants to merge 4 commits intomainfrom
dbcontext-pool

Conversation

@zacharykeeping
Copy link
Member

  1. What triggered this change? (PBI link, Email Subject, conversation + reason, etc)

Closes #1161

  1. What was changed?

Moves to DBContextPool

  1. Did you do pair or mob programming?

No

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 implements DbContext pooling to improve performance and reduce pressure on SQL Server under load by reusing DbContext instances instead of creating new ones for each request.

Changes:

  • Changed from AddDbContext to AddDbContextPool in Infrastructure service configuration
  • Formatting adjustment to the lambda continuation (builder parameter alignment)

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

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.

✨ Web API | DbContext pool

2 participants