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

[Optimization] Single database handle for all SB plugins #464

Open
rumblefrog opened this issue May 15, 2018 · 0 comments · May be fixed by #625
Open

[Optimization] Single database handle for all SB plugins #464

rumblefrog opened this issue May 15, 2018 · 0 comments · May be fixed by #625

Comments

@rumblefrog
Copy link
Member

rumblefrog commented May 15, 2018

Is your feature request related to a problem? Please describe.

As approached by few users, SourceBans++ currently have 4 plugins that each individually create their own database handle, on a large scale, 5 servers can easily take up ~20 connection slots on a MySQL database, assuming it reuses the handle correctly

Describe the solution you'd like

Natives within the main plugin for retrieving database handles, status, etc

Example typedefs:

native Database getDBHandle();

native bool isDBConnected();

Describe alternatives you've considered

  • I've discussed bumping connection limits with users, however, this is quite impossible on shared hosting

Additional context

@TheByKotik TheByKotik linked a pull request Oct 15, 2019 that will close this issue
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant