Skip to content

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

Open
@rumblefrog

Description

@rumblefrog

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions