Skip to content

FEAT: adding tests for connection pooling speed and basic functionality #103

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

Merged
merged 1 commit into from
Jun 28, 2025

Conversation

gargsaumya
Copy link
Contributor

This pull request introduces new functionality to test connection pooling in the mssql_python library, along with some minor updates to imports in the test file. The most significant changes include adding tests for connection pooling speed and basic functionality, as well as updating the import statement to include the pooling module.

Connection pooling tests:

  • tests/test_003_connection.py: Added test_connection_pooling_speed to measure the performance improvement when using connection pooling compared to no pooling. Includes assertions to validate that pooled connections are faster.
  • tests/test_003_connection.py: Added test_connection_pooling_basic to verify the functionality of connection pooling with a small pool size, ensuring connections are reused and respecting the pool size limit. Includes assertions and exception handling for edge cases.

Import updates:

  • tests/test_003_connection.py: Updated import statement to include the pooling module, which is required for the new connection pooling tests.

@Copilot Copilot AI review requested due to automatic review settings June 25, 2025 09:25
Copy link
Contributor

@Copilot 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 pull request adds new tests for the connection pooling functionality in the mssql_python library, validating both performance improvements and pool size limits.

  • Added test_connection_pooling_speed to compare connection times with/without pooling.
  • Added test_connection_pooling_basic to confirm that the pool size limit is enforced and updated the import statement to include the pooling module.

bewithgaurav
bewithgaurav previously approved these changes Jun 27, 2025
jahnvi480
jahnvi480 previously approved these changes Jun 27, 2025
@gargsaumya gargsaumya dismissed stale reviews from jahnvi480 and bewithgaurav via cde74c2 June 27, 2025 10:35
@gargsaumya gargsaumya merged commit be61e9a into main Jun 28, 2025
9 checks passed
@gargsaumya gargsaumya mentioned this pull request Jul 1, 2025
1 task
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.

3 participants