Stores and Partitions

Top  Previous  Next

In the Web3 Platform, user permissions are granted on containers of data.

 

A Store is the highest level data container. Every Web3 installation consists of two stores - the Topic Map Store and the Schema Store. These stores equate to the databases used to implement them. A store is a container of Partitions - the Topic Map Store directly contains one partition for each topic map; the Schema Store contains one partition for each schema.

 

The permissions available on a store are:

 

Create Partition - allows a user to add a new partition to the store. This allows the user to create topic maps in the Topic Map Store or create schemas in the Schema Store.
Create Job - allows the user to create a long-running job that acts on the store. This permission only allows the user to schedule jobs - the user will still require specific permissions on the partition(s) affected by the job.
Admin - allows the user to grant and revoke permissions on the store.

 

A Partition is a container of actual data. Each top-level partition in a store represents a topic map (in the Topic Map Store) or a schema (in the Schema Store). The permissions available on a partition are:

 

Read - allows the user to read and query data from this partition
Write - allows the user to create, update and delete data in this partition
Create Partition - allows the user to create a sub-partition. This feature is not currently used but will be supported in future versions of the Web3 Platform.
Admin - allows the user to grant and revoke permissions on the partition.