Skip to main content

Work with Collections

Collections form the basis for interacting with the Macrometa GDN, allowing you to perform various actions on your data. Let's go over some tasks you can perform with collections.

Create a New Collection

When viewing your collections, you can click New Collection to create a new collection.

View Collections

  1. Log in to your Macrometa account.
  2. Click Data > Collections.

This displays a list of collections. The following columns show information about each collection.

Field NameDescription
Collection NameThe list of all collections you have access to, sorted alphabetically.
Data ModelDisplays the type of each collection.
Stream EnabledShows whether a collection stream is enabled (Yes) or not enabled (No). You can change this in the collection Data tab.
DistributionWhen a collection is created, it can be locally or globally distributed across Macrometa servers. This section displays the distribution type for your collections - Local or Global.
Filter CollectionsIf you have many collections, then it can be helpful to filter your collection list so that you have fewer to sort through.

Filter Collections

The GDN allows you to filter collections by name or by type.

  • Filter Collections by Name : Enter the name of the collection into the search bar to filter your collections.

filter by name

  • Filter Collections by Type : Click on the desired collection type to get a list of all the collections matching the type. The following filters for key-value collections.

filter by type

Truncate a Collection

Truncating a collection removes all the documents from the collection but leaves the indexes in place. This is available for all collection types, except a Dynamo Table.

To truncate a collection:

  1. Log in to your Macrometa account.
  2. Click Data > Collections.
  3. Click the collection that you want to truncate.
  4. Click Settings.
  5. In the Settings tab, click Truncate Collection.

Truncate Collection Section

Delete a Collection

Unlike truncating a collection, deleting a collection removes all the content, including the indexes.

To delete a collection:

  1. Log in to your Macrometa account.
  2. Click Data > Collections.
  3. Click the collection that you want to delete.
  4. Click Settings.
  5. In the Settings tab, click Delete Collection.

Delete Collection Section