Add regex(?) search to Experience KVP storage
tracked
Zi Ree
Allow us to retrieve keys and/or data from the Experience KVP storage by passing a regex or pattern.
Example: an experience KVP contains the following keys (key, value):
- player_(some_uuid), "Player Name"
- player_(another_uuid), "Another Player"
- player_(yet_another), "Third Player"
- level_1, "SomeLevelDescription"
- level_2, "AnotherLevelDescription"
- level_3, "AndHereIsAnotherLevel"
Now I do something like:
searchRequest = llSearchKeyKeyValue("player_.*", 0);
or:
searchRequest = llSearchValueKeyValue("Player Name", 0);
and retrieve the result in the dataserver event as usual.
Why would this be important?
Given the example, if I want to display or count all player names, I have to read through the whole storage and filter the "player_.*" entries "manually", which takes a lot of time if you have a big KVP storage and are only interested in a small subset of keys / data. This functionality would greatly simplify and accelerate scripts that deal with mixed data inside an experience KVP storage.
Log In
Spidey Linden
marked this post as
tracked
Issue tracked. We have no estimate when it may be implemented. Please see future updates here.
Vincent Nacon
Yes, but Regex is dreadful to use. Like extremely dreadful, it should be banned from this world.
Zi Ree
That would already be much better than having to search the database one-by-one! Thank you for the reply!
Signal Linden
Hey, Zi. Thanks for the request.
Unlike Linkset Data (LSD), which lives in memory on the simulator, Experience data is stored in an external database so that it can be accessed by multiple scripts in different regions.
Full regex may not be possible, but it may be possible to introduce basic wildcard (ex.
foo_*
) support.Extrude Ragu
Signal Linden Even just this would be extremely useful to have