What is the best approach to separate the data from the debug version and the live one?
The question and answers here describe how to separate the code logic: https://stackoverflow.com/a/8550105/129202
Still the datastore data is shared between all versions.
I imagine any of these:
- some nice setting in the dashboard that would automatically separate all data between versions, so they are completely ignorant of each other. No changes needed in code, unless you expect versions to share data :-P
- get version number in code and use that to "physically" organize data, ie putting all data in subfolders/subkeys per version... I'm not very experienced with the datastore yet and don't know if this would have a significant impact on performance.