Table of Contents
- Table of Contents
- User Space Database
User Space Database
A user database is a flexible datastore that has multiple use cases mainly used in allocations which 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.
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.
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.
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:
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:
- Click on the Add New button.
Pop up will appear.
Fill out the details in the dialogue box.
Click Save once the details have been entered.
A new space will now be added.
Refresh the List
The list can be refreshed, if needed, by simply pressing the Refresh button.
Deleting the Items
To delete an item from the list:
- Select any name from the Area column.
- Click the delete icon, which is right next to the Refresh button.
Edit the Details
To edit the details of any item, do the following:
- Click on name of the Area column that needs to be updated.
- Pop up will appear. Edit the details in the dialog box.
- Click Save, once the details have been edited.
Search Text Fields
You can search the Area and Key from the given search text fields.
Following image depicts both search text fields.