generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: DataStore: Saving Table vs String

Previous Thread :: Next Thread 
LetUsGame is not online. 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 is not online. LetUsGame
Joined: 09 Nov 2013
Total Posts: 199
17 Mar 2014 04:13 PM
bump~
Report Abuse
trogyssy is not online. 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 is not online. 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 is not online. 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 is not online. LetUsGame
Joined: 09 Nov 2013
Total Posts: 199
17 Mar 2014 08:45 PM
Thank you for replying btw ^-^
Report Abuse
NeonBlox is not online. 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
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image