Skip to content

Conversation

@sfc-gh-fpawlowski
Copy link
Contributor

Added new INFO log (we have 4 in basic flow, this 5th will happen only when param server_session_keep_alive is set to True).

Optimised conditions placement

  • possible decrease in time overhead for the whole session from 1% to 10% when firing 100 async queries.
    100 queries + close:
    server_session_keep_alive=False: 33.28s
    server_session_keep_alive=True: 30.04s
    → True is faster by 3.25s (9.8%)

  • possible decrease in time overhead for only the connection.close() from 40% to 60% when firing 100 async queries.
    100 queries, then CLOSE ONLY:
    server_session_keep_alive=False: 0.504s
    server_session_keep_alive=True: 0.214s
    → True is faster by 0.290s (57.5%)

    Tested manually - no standard benchmarking.

@sfc-gh-fpawlowski sfc-gh-fpawlowski self-assigned this Dec 18, 2025
@sfc-gh-fpawlowski sfc-gh-fpawlowski force-pushed the SNOW-2690900-isolate-param-server_session_keep_alive-condition branch from 359149f to fefa6c4 Compare December 18, 2025 06:26
@sfc-gh-fpawlowski sfc-gh-fpawlowski marked this pull request as ready for review December 18, 2025 08:32
@sfc-gh-fpawlowski sfc-gh-fpawlowski requested a review from a team as a code owner December 18, 2025 08:32
)
)
else:
logger.info(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important to make sure such communication at the INFO level is smth we want.

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.

2 participants