512GB
|
  |
| Joined: 19 Apr 2012 |
| Total Posts: 4271 |
|
|
| 18 Jan 2015 01:02 PM |
I am making a universe. If it were to get on the front page, it would need to have hundreds of thousands of planets to seem like a legit universe.
All servers need to have the same planets, but only planets nearby the player will spawn. Planet data will be stored in a table like so:
local planet = { int size, color3 color, vector3 position, boolean rings }
I need advice on how to store this data. Data Store or HttpService? I have a webserver and can use http, but I'm afraid of overloading the server if too many people are playing.
And Data Store seems limited, I know you can store virtually unlimited data in it but how? I imagine that saving 500,000 tables like above in one giant table would cause problems, would it not? |
|
|
| Report Abuse |
|
|
Goulstem
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 7177 |
|
| |
|
512GB
|
  |
| Joined: 19 Apr 2012 |
| Total Posts: 4271 |
|
|
| 18 Jan 2015 01:05 PM |
If I use DataStores, I will have to save everything into one master table. That's going to be a big table. Are we 100% certain that won't cause issues?
And, I'd need to update that table pretty frequently, as people will change the colors of their planets for example. |
|
|
| Report Abuse |
|
|
|
| 18 Jan 2015 01:13 PM |
why use a table? just keep the planets in server/replicated storage
⬡ |
|
|
| Report Abuse |
|
|
BowtieMod
|
  |
| Joined: 01 Apr 2013 |
| Total Posts: 804 |
|
|
| 18 Jan 2015 01:29 PM |
Generate them on the go Store the seeds and generate from them
I would recommend HttpService because DataStores seems fickle and prone to failure |
|
|
| Report Abuse |
|
|
512GB
|
  |
| Joined: 19 Apr 2012 |
| Total Posts: 4271 |
|
|
| 18 Jan 2015 01:46 PM |
| Thanks for suggesting seeding, Bowtie. I will go with this method, and use HttpService to save/load changes to the generated planets. |
|
|
| Report Abuse |
|
|