Abasalt_Yar Posted May 14, 2020 Share Posted May 14, 2020 (edited) Hi, I wanna know what happens if I have more than 100 (for example) accountData using setAccountData? (I mean lag or something like it) Do you think is good to use mysql and each (vehicle useraccounts & ...) in a different table ? Edited May 14, 2020 by Abasalt_Yar Link to comment
Moderators IIYAMA Posted May 14, 2020 Moderators Share Posted May 14, 2020 (edited) 2 hours ago, Abasalt_Yar said: Hi, I wanna know what happens if I have more than 100 (for example) accountData using setAccountData? just 100 accounts will not hurt very much. But at a given moment you probably see the performance de-increase because the search time increases. Some people say that accountData is slower in compare to SQL, but I never tested that. There is one thing to keep in mind and that is that account data doesn't allow you to use async methods. (Callback functions) Because of this limitations, you can't separate your MTA server process from the internal database. This means that for every (invisible) `database query` you fire, your scripts are frozen. When your database gets slower, your scripts will be directly affected by that. Anyway, I have no knowlegde about, if accountdata is using a memory buffer when a user has been login to speed up the requests. I hope it does, it could be a nice feature. 2 hours ago, Abasalt_Yar said: Do you think is good to use mysql and each (vehicle useraccounts & ...) in a different table ? yes, You can also use SQL, which doesn't require lot of work to make it work if you haven't set-up MySQL already. Edited May 14, 2020 by IIYAMA Link to comment
Abasalt_Yar Posted May 18, 2020 Author Share Posted May 18, 2020 On 15/05/2020 at 00:46, IIYAMA said: This means that for every (invisible) `database query` you fire, your scripts are frozen. When your database gets slower, your scripts will be directly affected by that oh Thanks For The Help Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now