Question on optimization
#5

Quote:
Originally Posted by GospodinX
Посмотреть сообщение
Hi ItsRobinson,
I also needed answer on this question,so thank you!

But i have other question.Ok,for players info(cash etc) are not good to call mysql query,I think that we all know it.(Because you will need to call it many times)

But what about houses,server settings and other things which don't need to be called often? Is there any thing which is better to don't store inside enums?

(Sorry for English)
If the query will be executed once(as loading a house from the database) that should be stored in an enum as its not gonna change so often as a player data. Same thing with server settings, if you gonna load the server settings doing once at the startup and store it somewhere in the server(enum or any other data structure). Also for server settings its not really need to be stored in the databse, they can be inside a .ini file and read it on the server startup and stored. Making changes inside the server and just query the database to update the player stats or something its better

In my opinion, i would query the database asking for changes only if the changes are coming from outside the server as a UCP/ACP change like grant a admin level to a player thought that ACP/UCP
Reply


Messages In This Thread
Question on optimization - by Seifspeed - 11.07.2018, 12:05
Re: Question on optimization - by DuyDang2412 - 11.07.2018, 14:50
Re: Question on optimization - by ItsRobinson - 11.07.2018, 17:36
Re: Question on optimization - by GospodinX - 12.07.2018, 11:12
Re: Question on optimization - by Banditul18 - 12.07.2018, 11:49

Forum Jump:


Users browsing this thread: 1 Guest(s)