[Feature Request] - New Experience KVP functions.
tracked
Lucia Nightfire
Today, Monty Linden mentioned that future Experience KVP database work is required and if there were any feature requests, they should be filed soon.
So with that said, here are some much needed functions:
llInsertKeyValue(string key_name, string key_value, integer index); inserts key_name and value at index number (this is a create)
llMoveKeyValue(string key_name, integer index) moves key_name to index number (alternative to delete, then insert)
llFindKeyValue(string key_name) returns the index number key_name is at
The Experience KVP database is indexed.
Having the above functions will allow sorting/grouping/partitioning/defragging/cleanup capabilities.
This will significantly cut down on mass lookup/find protocols, wasting literally millions of requests per user a year and in some cases, per week.
Regex for Experience KVP would be far better though...
Log In
Sayrah Parx
I wish they never combined the KVP database with Experiences in the first place. Maybe it's still possible to partially decouple them, so that only premium accounts can use the KVP database but everyone could make an Experience. I understand why they would make the KVP database premium-only, but the two things should have been separate from the beginning.
Spidey Linden
tracked
Issue tracked. We have no estimate when it may be implemented. Please see future updates here.
Peter Stindberg
I never looked much into experiences as they are too slow (dataserver) for most of my projects. Is there a NEED for it to be indexed? Is it beneficial to have it be indexed?
If I should make a wish about experiences, it would be to make them more LSD like: instantaneous random access, near instantaneous read/write speed, no dataserver.
Lucia Nightfire
Peter Stindberg
LL decided to make Experience KVP indexed back in the early 2010's.
Also, Experience KVP uses remote servers and r/w is asynchronous. It is "slow" because of this, unlike LSD which is a prim property of the host of the script. LSD cannot be read or updated remotely w/o an additional asynchronous means. Both have their individual uses/needs Experience KVP is still, far faster than HTTP.
Peter Stindberg
Lucia Nightfire Thanks for the explanation. I will eventually look into them again, if only out of curiosity.