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 » Scripters
Home Search
 

Re: Too harsh on datastore?

Previous Thread :: Next Thread 
Craftwithcookie is not online. Craftwithcookie
Joined: 21 Dec 2012
Total Posts: 951
25 Jun 2016 07:41 PM
If I saved around 40 different strings at once to datastore, would that overwhelm the system? Or is datastore way more powerful than that? Also most of the strings would have around 6 characters in them, but 1 would have 50 characters and another would have 25 characters.
Report Abuse
AggressiveCatch is not online. AggressiveCatch
Joined: 17 Jul 2011
Total Posts: 5840
25 Jun 2016 07:42 PM
http://wiki.roblox.com/index.php?title=Data_store#Limitations
Report Abuse
Lord_Narwhal is not online. Lord_Narwhal
Joined: 05 May 2012
Total Posts: 3242
25 Jun 2016 07:42 PM
store all the strings into a dictionary and save that dictionary directly

40 requests -----> 1 request


Add 13,000 posts
Report Abuse
exoSentinel is not online. exoSentinel
Joined: 18 Mar 2012
Total Posts: 2795
25 Jun 2016 08:07 PM
I thought you had to save dictionaries differently than regular arrays.
Report Abuse
Lord_Narwhal is not online. Lord_Narwhal
Joined: 05 May 2012
Total Posts: 3242
25 Jun 2016 08:08 PM
you don't

you can JSON encode them but that's not exactly necessary


Add 13,000 posts
Report Abuse
BanTech is not online. BanTech
Joined: 31 Dec 2015
Total Posts: 886
25 Jun 2016 08:22 PM
Dictionaries and arrays save normally. Tables with mixed keys are where your problems arise, so you have to be strict with your implementation.
Report Abuse
Craftwithcookie is not online. Craftwithcookie
Joined: 21 Dec 2012
Total Posts: 951
25 Jun 2016 09:53 PM
(Sorry if I sound really noob) Is a dictionary like converting 40 strings into 1 string, or is it a feature of Roblox studio?
Report Abuse
exoSentinel is not online. exoSentinel
Joined: 18 Mar 2012
Total Posts: 2795
25 Jun 2016 11:52 PM
Look at the tables and dictionaties page on the wiki.
Report Abuse
sharpchain1 is not online. sharpchain1
Joined: 05 Aug 2013
Total Posts: 1009
26 Jun 2016 01:00 AM
Store all the strings in a dictionary[2]

or in a table either one works. It is kinda like compressing stuff in a .zip file


Report Abuse
sharpchain1 is not online. sharpchain1
Joined: 05 Aug 2013
Total Posts: 1009
26 Jun 2016 01:00 AM
Dictionary/Table wiki page

http://wiki.roblox.com/index.php?title=Table&redirect=no#Dictionaries


Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
26 Jun 2016 01:03 AM
a dictionary is a table where the index is a string instead of a number

table = {
[1] = "wow",
[2] = 8,
[3] = true
}

dictionary = {
["Gold"] = 250,
["XP"] = 5555,
["Inventory"] = {}
}


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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