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

Correctly set pool size when using AddPooledDbContextFactory #23983

Merged
merged 1 commit into from
Feb 10, 2021

Conversation

ajcvickers
Copy link
Member

Fixes #23889

Description

AddPooledDbContextFactory (new in 5.0) has a parameter to set the pool size. This value was not being passed down to lower-level config and hence the default pool size is always used.

Customer Impact

The pool size cannot be changed when using the 'AddDbContext' for a factory and pooling.

How found

Customer reported on 5.0.

Test coverage

The test factoring did not test the defaults or overridden values for pool size; this has been added.

Regression?

No; new feature in 5.0.

Risk

Very low.

Fixes #23889

**Description**

AddPooledDbContextFactory (new in 5.0) has a parameter to set the pool size. This value was not being passed down to lower-level config and hence the default pool size is always used.

**Customer Impact**

The pool size cannot be changed when using the 'AddDbContext' for a factory and pooling.

**How found**

Customer reported on 5.0.

**Test coverage**

The test factoring did not test the defaults or overridden values for pool size; this has been added.

**Regression?**

No; new feature in 5.0.

**Risk**

Very low.
@ajcvickers ajcvickers added this to the 5.0.x milestone Jan 26, 2021
@ajcvickers ajcvickers requested a review from a team January 26, 2021 19:07
@ajcvickers ajcvickers changed the title Correctly set pool size when using AddDbContextFactory Correctly set pool size when using AddPooledDbContextFactory Jan 26, 2021
@leecow leecow modified the milestones: 5.0.x, 5.0.4 Jan 28, 2021
@wtgodbe wtgodbe merged commit 79f1541 into release/5.0 Feb 10, 2021
@wtgodbe wtgodbe deleted the MakingABiggerSplash0125 branch February 10, 2021 17:07
roji pushed a commit that referenced this pull request Feb 12, 2021
* Merged PR 12008: [internal/release/5.0] Feed update
* Update branding to 5.0.4
- update to 5.0.3 SDK
    -  also update downlevel runtimes
* Update dependencies from https://github.com/dotnet/arcade build 20210209.6 (#24103)
* InMemory: Allow UnaryExpression.Operand to be converted to nullable for LeftJoin (#23984)
* Correctly set pool size when using AddDbContextFactory (#23983)
@ajcvickers ajcvickers removed this from the 5.0.4 milestone Jul 11, 2021
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants