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

Feature: MBSync Data Versions #80

Open
ApertureDevelopment opened this issue Mar 12, 2022 · 0 comments
Open

Feature: MBSync Data Versions #80

ApertureDevelopment opened this issue Mar 12, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request feature A new feature
Milestone

Comments

@ApertureDevelopment
Copy link
Member

Description

As of now, MBSync updates its data every few minutes to prevent the queries from overloading the dastabase. This logic has a flaw, if the user is banned on another server within this period it takes several minutes for the other servers to syncronize the ban, which could be enough time for the banned user to cause more trouble.

The solution for this would be a simplified query which can run every few seconds. It should be as simple as:

SELECT version FROM tbl_msyncdb_version WHERE module_id='mbsync_data'

Another solution would be to implement some kind of messaging service with increasing version numbers. For this we would need at least one new table. With this table we wouldnt need to query all MBSync bans every few minutes, but instead only syncronize changes across the servers. This would require the table to hold the following data:

  • increasing number
  • The ban data
  • A Timestamp
@ApertureDevelopment ApertureDevelopment added the enhancement New feature or request label Mar 12, 2022
@ApertureDevelopment ApertureDevelopment added this to the v1.5.0 milestone Mar 12, 2022
@ApertureDevelopment ApertureDevelopment self-assigned this Mar 12, 2022
@ApertureDevelopment ApertureDevelopment added the feature A new feature label Mar 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature A new feature
Projects
None yet
Development

No branches or pull requests

1 participant