Skip to main content

Collections

A collection can be empty or contain documents. Macrometa GDN is schemaless, so you do not need to define valid document attributes. Documents with completely different structures can be stored in the same collection.

Global or Local Collections

Document collections can be created as local or global collections.

  • A local collection stores its data in one region and does not replicate to other regions. You can create a local collection in any specified region. Best practice is to use a region-specific API endpoint when interacting with local collections. If a user sends a request to a local collection without being routed to the appropriate region, the request will fail.
  • A global collection replicates its data and maintains state and consistency across all regions in the fabric.

Collection Types

Macrometa offers several types of collections.