LetUsGame
|
  |
| Joined: 09 Nov 2013 |
| Total Posts: 199 |
|
|
| 17 Mar 2014 02:13 PM |
| Is it better (efficient in data, etc) to save things with DataStore as a table or as a string with JSON? |
|
|
| Report Abuse |
|
|
LetUsGame
|
  |
| Joined: 09 Nov 2013 |
| Total Posts: 199 |
|
| |
|
trogyssy
|
  |
| Joined: 29 Oct 2010 |
| Total Posts: 2322 |
|
|
| 17 Mar 2014 04:14 PM |
Use tables, they don't eat up as many requests as strings.
~~trogyssy, Scripting Helper and S&I Activist~~ |
|
|
| Report Abuse |
|
|
NeonBlox
|
  |
| Joined: 19 Oct 2008 |
| Total Posts: 1462 |
|
|
| 17 Mar 2014 04:14 PM |
| Definitely JSON. Only thing you have to remember is there is a maximum string character limit, but it's fairly high so as long as you're not saving massive tables you'll be fine. |
|
|
| Report Abuse |
|
|
LetUsGame
|
  |
| Joined: 09 Nov 2013 |
| Total Posts: 199 |
|
|
| 17 Mar 2014 08:43 PM |
| Hm. Anyone else want to add on to this o3o? 1-1 |
|
|
| Report Abuse |
|
|
LetUsGame
|
  |
| Joined: 09 Nov 2013 |
| Total Posts: 199 |
|
|
| 17 Mar 2014 08:45 PM |
| Thank you for replying btw ^-^ |
|
|
| Report Abuse |
|
|
NeonBlox
|
  |
| Joined: 19 Oct 2008 |
| Total Posts: 1462 |
|
|
| 17 Mar 2014 08:46 PM |
Data store also has some issues when saving tables, like saving tables of different formats and such.
Issues saving something like this:
myTable = {1,x=2,3}
From what I understand, using JSON avoids this issue. |
|
|
| Report Abuse |
|
|
|
| 17 Mar 2014 08:49 PM |
Saving tables is what I do (the keys must either be all integers or all strings, no mixing allowed). However, I would assume saving strings is more efficient in terms of data limit.
It's your call. Surely you aren't saving enough stuff to exceed the limit (if there even is a limit). |
|
|
| Report Abuse |
|
|