Jump to content
  • 0

Accounts cleanup needed?


Callum

Question

Our accounts database (custom system using the SQLite functions) consists of around 100,000 accounts, with dozens of new accounts added daily. From researching PerformanceBrowser, it seems SQL queries are what is causing the longest execution time in scripts, therefore generating lag.

Would it be advised to prune all the old accounts (I'm sure 99% of the accounts are not currently in use) to optimize execution, or would it not really make that much of a difference?

Link to comment

2 answers to this question

Recommended Posts

  • 0
  • Discord Moderators

Well if around 99% of the accounts aren't in use, perhaps move them to another database. Once they log in again, if they do, it will be moved to the new one, and moved back if they go inactive.

This would only cause lag on join (and only if an old user joins) since it has to look up in two databases, and an old inefficient one.

Does your SQLite databases have indices btw?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...