200AB
|
  |
| Joined: 24 Aug 2010 |
| Total Posts: 1604 |
|
| |
|
jobro13
|
  |
| Joined: 05 Aug 2009 |
| Total Posts: 2865 |
|
| |
|
janthran
|
  |
| Joined: 15 May 2009 |
| Total Posts: 17429 |
|
| |
|
Merely
|
  |
| Joined: 07 Dec 2010 |
| Total Posts: 17266 |
|
|
| 26 Feb 2014 01:00 PM |
| 64k but it includes the key. So you should store slightly less than that. |
|
|
| Report Abuse |
|
|
|
| 26 Feb 2014 02:43 PM |
| How much is a string worth? :/ |
|
|
| Report Abuse |
|
|
200AB
|
  |
| Joined: 24 Aug 2010 |
| Total Posts: 1604 |
|
|
| 26 Feb 2014 10:53 PM |
@not Most (if not all?) characters are a single byte.
So, therefore, if this limit is true, 63,300 characters per key.
Not exactly sure if this would change if it's a table or not, but either way I think there's still a bug with tables having multiple value types, so it would be better to just EncodeJSON and DecodeJSON using RBXUtility. |
|
|
| Report Abuse |
|
|
Eosob
|
  |
| Joined: 02 Jun 2011 |
| Total Posts: 80 |
|
|
| 27 Feb 2014 06:34 AM |
| Like Merely said it includes the key, however if you don't include the key it will just use the Roblox Default key (0 for number, false for bool etc...) so if you need to use those, it'll save data on not including the key. |
|
|
| Report Abuse |
|
|
jobro13
|
  |
| Joined: 05 Aug 2009 |
| Total Posts: 2865 |
|
|
| 02 Mar 2014 12:28 PM |
Actually datastore uses EncodeJSON and DecodeJSON, so you can't just say how much kb something takes (8 bytes per character) by just putting a string in a table, as it will take slightly more.
I would like to see a way to store raw strings, so we can create our own compression functions. |
|
|
| Report Abuse |
|
|
200AB
|
  |
| Joined: 24 Aug 2010 |
| Total Posts: 1604 |
|
|
| 02 Mar 2014 12:32 PM |
@jobro If it already uses Encode/DecodeJSON, then why would it have any problem with varied value types for tables? I'm assuming you mean it automatically uses EncodeJSON when setting the value for a key, and Decode when calling it. So, if that were the case, everything it handles would already be a string. |
|
|
| Report Abuse |
|
|