Everything -
Therefore, I need to save the 3D positions (x, y, z) associated with the objects in the video game.
I'm curious, is this a terrible idea? Positions are generated quite often and can change.
Basically, I would ONLY store a position in my database if it is not in the yard of an already saved position.
I basically chose the existing positions for the object in the game (object_id, object_type, continent and game_version), iterated over and calculated the distance using PHP. If it was> 1, I would insert it.
Now that I have about 7 million lines (obviously not for the same object), this is inefficient, and the server I'm using is suitable for workaround.
Does anyone have any ideas on how I can better store this information? I would prefer it to be in MySQL somehow.
Here is the table structure:
object_id object_type (like unit or game object) x y z continent (an object can be on more than one continent) game_version (positions can vary based on the game version)
Later, when I need to access the data, I basically request it only object_id, object_type, continent and game_version (so I have an index on these 4)
Thanks! Josh
Geesu source share