|
| 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 |
|
|
|
| 25 Jun 2016 07:42 PM |
| http://wiki.roblox.com/index.php?title=Data_store#Limitations |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 25 Jun 2016 08:07 PM |
| I thought you had to save dictionaries differently than regular arrays. |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 25 Jun 2016 11:52 PM |
| Look at the tables and dictionaties page on the wiki. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 26 Jun 2016 01:00 AM |
Dictionary/Table wiki page
http://wiki.roblox.com/index.php?title=Table&redirect=no#Dictionaries
|
|
|
| Report Abuse |
|
|
|
| 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 |
|
|