HangfireIO / HangfireIO/Hangfire
Do we have any plan for reusing existing database connections?
- Dominant language
- C#
- Stars
- 10.1k
- Forks
- 1.8k
- Avg merge
- 1h 19m
- Merged PRs (30d)
- 1
Description
Hi,
I saw some useful SqlServerStorage constructor in source code. For example, the constructor support existing connection:

But no where used it in the source code. I think this is very useful because it allows me to reuse existing connections. From my understanding of the source code it establishes a new connection each time for a query right by using this code:

So do we have any plan to publish that constructor for reusing existing connections? Or may I use any other ways to reuse existing connections?
Contributor guide
Research direction
Start by inspecting the SqlServerStorage constructor and the source path that creates a connection for each query. Determine whether the existing-connection constructor is intended to be exposed and what reuse behavior would need to be supported; completion would require a decided API and documented or tested behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, sql
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100