Kacper
|
  |
| Joined: 10 Dec 2007 |
| Total Posts: 585 |
|
|
| 02 Jul 2014 10:20 AM |
Is it okay to save e.g. 30 values in Data Store for each player who visits my game? Can it cause any problems in the future?
Thanks, Kacper |
|
|
| Report Abuse |
|
|
luap2000
|
  |
| Joined: 31 May 2014 |
| Total Posts: 43 |
|
|
| 02 Jul 2014 10:25 AM |
Combined, the key and value of an entry in the data store cannot exceed 64 kilobytes, or 2^16 characters.
To determine the length of a string, call string.len
64kB fits 2^16 characters. Tables are stored in JSON, so the encoded JSON of a table should not exceed 2^16 characters. Numbers and booleans will never exceed this length.
There is a data limit per value. You cannot save any data which data size is more than 64 kilobyte, which equals 2 ^ 16 string characters. Tables are saved in JSON, which means that the encoded JSON string should not exceed a length of 2 ^ 16 characters. Numbers and booleans will never exceed this length. For strings, you can call the function on it: if this returns less than 2 ^ 16, you can be sure that this key can save. If this data limit is exceeded, all save functions will throw an error, and the data provided will not be saved on the roblox servers.
from: http://wiki.roblox.com/index.php?title=Data_store |
|
|
| Report Abuse |
|
|
Kacper
|
  |
| Joined: 10 Dec 2007 |
| Total Posts: 585 |
|
|
| 02 Jul 2014 11:20 AM |
| I save only simple numbers, but there are about 30 values to save. So this won't cause any problem? |
|
|
| Report Abuse |
|
|
Kacper
|
  |
| Joined: 10 Dec 2007 |
| Total Posts: 585 |
|
|
| 02 Jul 2014 11:21 AM |
| 30 simple values to save for each player. Maybe 9 of them are containing 2-3 digit numbers. |
|
|
| Report Abuse |
|
|
luap2000
|
  |
| Joined: 31 May 2014 |
| Total Posts: 43 |
|
|
| 02 Jul 2014 11:51 AM |
| I assume not. Other games, like rpg's, store way more than that i think |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2014 11:54 AM |
| You have to be wary of the request limit, however. |
|
|
| Report Abuse |
|
|