Table of Contents

User Space Database

A user database is a flexible datastore that has multiple use cases mainly used in allocations that you can build using ScriptForge. It is also available in 3 different backends each with their own advantages and disadvantages

There are 3 different types of datastore accessible.

  1. High Capacity - This is a key-value pair store which uses eventual consistancy to replicate between zones. This is ideally used for lists of numbers for example a DNC list. It should not be used for counters or very high speed writes.

  2. High Speed - This operates as a caching layer, is exceptionally fast and is also eventually consistent between zones. It should be considered ephemeral and used like a cache.

  3. Highly Consistant - This datastore benefits from a global truth, it is fast at reads, slower on updates and is not designed to hold large quantities of data (< 10,000 records)

When you create your datastore you can specify what type of datastore will be created. Some examples of where datastore can be used.

Checking a list of numbers (#1), caching external lookups (#2), or creating a stateful application which could allow users X amount of free minutes per month.

This tutorial will guide you on how to manage User Space Database. You can go to the Setup from the left pane and click on the User Space Database, as highlighted in the image below:

alt text

You can add a new database and you can also refresh the lists in just one click.

Adding New User Space Database

A new user space database can be added by following simple steps:

  1. Click on the '+' button.

alt text

  1. Pop up will appear.

  2. Fill out the details in the dialogue box.

  3. Click Save once the details have been entered.

alt text

A new space will now be added.

Refresh the List

The list can be refreshed, if needed, by simply pressing the Refresh button.

alt text

Deleting the Items

To delete an item from the list:

  1. Select any name from the Area column.
  2. Click the delete icon, which is right next to the Refresh button.

alt text

Edit the Details

To edit the details of any item, do the following:

  1. Click on name of the Area column that needs to be updated.

alt text

  1. Pop up will appear. Edit the details in the dialog box.
  2. Click Save, once the details have been edited.

alt text

Search Text Fields

You can search the Area and Key from the given search text fields.

Following image depicts both search text fields.

alt text