-
Notifications
You must be signed in to change notification settings - Fork 330
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
Create "Best Practices" / "Known Issues" Documentation #75
Comments
The Synchronous Best Practices can be simplified: If using synchronous methods, ensure that your thread pool is at least the size of the number of concurrent connections you plan to support. For example, if you are creating a web server using synchronous methods that needs to support serving 500 Requests Per Second, set the minimum thread pool size to 500. .NET Core Configuration example:
|
@bgrainger what do you think about adding GitHub Pages to this project and putting official documentation there? If you want to make me an editor on the project I can set the whole thing up. I will only maintain the |
Sounds good. That might also be a good way of addressing the documentation changes I mentioned in #84: if the GitHub pages site contains more consumer-focused topics ("how to install", "how to report a bug", etc.) than the project README could reamin developer-focused ("how to build", "how to run tests") but should have a link to the user-facing site. |
Library users should be educated on the best way to implement the library and warned of any known issues that can cause bad performance in the driver. This should either be a Wiki page, in the README.md, or in some other .md file that is linked to from README.md
Best Practices
Use async methods all the way down
Known Issues
Calling
DbConnection.Open
in .NET Core can lead to thread pool lock-ups when processing hundreds of synchronous requests per second.await DbConnection.OpenAsync
from an async methodDbConnection.Open
, warm the connection pool:min pool size
in the connection stringDbConnection.Open(); DbConnection.Close();
on application startupThe text was updated successfully, but these errors were encountered: