Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

[BUG-6998] [Experience Tools] Feature Request: Functions InsertKeyValue() & FindKeyValue() #14769

Closed
sl-service-account opened this issue Aug 14, 2014 · 2 comments

Comments

@sl-service-account
Copy link

Information

Currently, we do not have an insertion method for key value pairs at a desired index.
We can only update existing values or add them at the end of the stack.

Proposed function and syntax:

  • key InsertKeyValue(string k, string v, integer i) - inserts value v at index i. Returns related error message if key k already exists or if database size is exceeded, etc.

    Currently, we do not have an explicit means of returning the index a key exists at in a database.
    We can only implicitly use llKeysKeyValue() to return keys in an inputted starting index and range.

    Proposed function and syntax:

  • key FindKeyValue(string k) - finds the index key k occurs at in the associated database. Returns related error message if k doesn't exist.

    Thanks in advance for any consideration.

Original Jira Fields
Field Value
Issue BUG-6998
Summary [Experience Tools] Feature Request: Functions InsertKeyValue() & FindKeyValue()
Type New Feature Request
Priority Unset
Status Closed
Resolution Unactionable
Reporter Lucia Nightfire (lucia.nightfire)
Created at 2014-08-14T16:54:20Z
Updated at 2014-08-20T18:13:44Z
{
  'Business Unit': ['Platform'],
  'Date of First Response': '2014-08-20T13:13:44.001-0500',
  'How would you like the feature to work?': "Currently, we do not have an insertion method for key value pairs at a desired index.\r\nWe can only update existing values or add them at the end of the stack.\r\n\r\nProposed function and syntax:\r\n- integer InsertKeyValue(string k, string v, integer i) - inserts value(v) at index(i). Returns related error message if key k already exist or if db size is exceeded, etc.\r\n\r\nCurrently, we do not have a explicit means of returning the index a key value exists at in a database.\r\nWe can only use llKeysKeyValue() to return keys in an inputted starting index and range.\r\n\r\nProposed function and syntax:\r\n- integer FindKeyValue(string k) - finds the index key(k) occurs at in the assoicated database. Returns related error message if key k doesn't exist.\r\n\r\nThanks in advance for any consideration.",
  'Target Viewer Version': 'viewer-development',
  'Why is this feature important to you? How would it benefit the community?': '?',
}
@sl-service-account
Copy link
Author

Lucia Nightfire commented at 2014-08-15T21:40:37Z

I just noticed there appears to be some kind of KVP store memory allocating that affects key value placement so these functions may not be feasible.

@sl-service-account
Copy link
Author

Marissa Linden commented at 2014-08-20T18:13:44Z

Thank you for your request. There is no fixed ordering in the key value store.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant