Advice on datastore structure and searching

I am making a game where players can claim multiple ‘objects’ with unique names. The objects store data like their name, owner, id, and creation date. I am unsure how I would organise these values in a datastore, and how I would make it possible to search with multiple parameters like their owner and id if there is only one key per object. If anyone knows how I could achieve this, please let me know. Thank you!

So, as a player I can “claim” an object made by a different player?

And the system will create that object extracting data like “name, owner, id, and creation date” from the dss of the object that I claimed?

what you mean by this?

Sorry, i’ve just realised how badly I worded all that! Let me try again:

Esensially, you can create an object with a name, and the object stores lots of other information as well as it’s name, like it’s owner and the object’s id. I’m wondering how I should organise it in a datastore and how I could make a search function that can search by both name and id. (it’s kind of hard to explain)

Im not sure if I understand your idea yet. But. Lets break it down

If you have 3 datastores.
One dedicated to store all players ID that created something

Another one dedicated to store adding Keys as the playerUserID = table made with all their creations names

And another datastore to save each object name as a Key, including all its properties as a table.

Upon server start, you could load those 3 datastores, and compare them to create a module table that will help you with the Searching tool system.

Having a “master module” that contains all information compared and shared along players. For quick searching.

Or… everytime a player does a search perform DSS queries to find if something exist…

My first thought, “fast search” and huge memory module VS slow search and low module memory used.

What I understand is that you want to let players to save their creations and other players are able to search for me. And those creations has lot of params that should be easy to find using a search toolGUI.


Using an external server to get/save the data could be used too

1 Like

All very good options. I will see what I can do!

(also, sorry for the late reply)

1 Like