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

[SUGGESTION] - Remove metadata, it causes major lag spikes. #271

Open
MaDHouSe79 opened this issue Feb 21, 2025 · 0 comments
Open

[SUGGESTION] - Remove metadata, it causes major lag spikes. #271

MaDHouSe79 opened this issue Feb 21, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@MaDHouSe79
Copy link

Hi,I don't know if I'm explaining it well, but let me try.

I don't really understand why metadata has been added, but it causes major lag spikes when saving player data to database,
also it never remove keys in qb scripts with exports['qb-vehiclekeys']:RemoveKeys(id, plate) so all keys stays in player metadata.

For example, if you do a lot of jobs that uses vehicles, they are also in the player metadata and never removed when the vehicle despawns, so if you have used 1000 vehicles you have 1000 keys in the player metadata, and that doesn't seem logical to me.

I removed the code and my server no longer has lag spikes when saving player data, because I had more than 1000 keys in database player metadata,
also you get a huge yellow message in the server console and you see a lot of vehicle keys that is going to save, but many keys you don't have the vehicle anymore because this was a random job vehicle.

It gets really bad if, for example, you have to test with vehicles and have to spawn a lot with command /car [model], then it will escalate in no time and cause major lag spikes, and it's strange that this is used because a player already have to spawn a vehicle after server restart anyway and give a key to the player, so what's the point of the metadata than, especially if you have keys from vehicles that you don't even have or just used one time but you keep the keys, and that makes no sense at all.

I hope I explain it well, I used google translate so it may look a bit strange, sorry about that.

Grt MaDHouSe.

@MaDHouSe79 MaDHouSe79 added the enhancement New feature or request label Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant