SA-MP Forums Archive
Mysql: Best way - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: General (https://sampforum.blast.hk/forumdisplay.php?fid=13)
+--- Thread: Mysql: Best way (/showthread.php?tid=246668)



Mysql: Best way - patrick1995 - 05.04.2011

What is better, select by connect everything from the database and save it realtime in the database + variables, or save it only in the database and ask the information every time the player ask it?


Re: Mysql: Best way - Incognation - 05.04.2011

I do it with realtime in in the database and variables.
It don't unused much queries, for each row you would have in your script.


Re: Mysql: Best way - Finn - 05.04.2011

Yeah, save the information in arrays, then update the database if needed.