Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Web API | DbContext pool #1161

Open
4 tasks
jernejk opened this issue Jan 22, 2025 · 0 comments
Open
4 tasks

✨ Web API | DbContext pool #1161

jernejk opened this issue Jan 22, 2025 · 0 comments
Labels
feature New functionality.

Comments

@jernejk
Copy link
Member

jernejk commented Jan 22, 2025

Cc: @vladislav-kir, @sethdaily

Hi @adamcogan,

Pain

Currently, DbContext is initialized for each web request which can put a lot of stress on SQL Server when under load. This could

Suggested Solution

Adding DbContextPool can improve the system's stability and reliability in the long run with fairly little effort.

Tasks

  • Update to DbContextPool
  • Verify that current DbContext will work correctly when pooled.

Acceptance Criteria

Thanks!

@jernejk jernejk added the feature New functionality. label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New functionality.
Projects
None yet
Development

No branches or pull requests

1 participant