Posts: 7,801
Threads: 187
Joined: Feb 2010
Reputation:
0
Hi guys. I have been thinking silently to myself for a couple of hours now while I'm scripting and helping other people, but I wasn't really sure of the answer. Would it be a smart/good idea to load objects from a MySQL database? I know it's pointless, but would it?
Posts: 551
Threads: 122
Joined: Nov 2009
Reputation:
0
I don't know. It depends on the amount / when you plan on loading. It could cause lag, it could reduce memory usage. But, if you do it, let me know how it worked out.
Posts: 2,629
Threads: 40
Joined: Mar 2008
Reputation:
0
It would be a good idea if you wanted to add some objects through a PHP document online without adding to the script itself. For my house system I made, it loads 400 queries per second (Pretty long ones) so it takes about 3 seconds for the 1200 houses. Something like 30k objects would be stupid to load but under 5k would be OK I suppose.
Posts: 166
Threads: 16
Joined: Jan 2010
Reputation:
0
I was thinking about it too. There wouldn't be any lag, only GM may load slower. But then you'd need separate entry for each object and group them somehow into separate projects. I use .map files currently on my server, but you can make database of your .map files and enable/disable them via your admin panel, even upload new ones.