Settings

Database

Dedicated database and Redis isolation for your organisation

The Database page shows the current state of your organisation's data infrastructure and lets you connect dedicated MongoDB and Redis instances.

Database settings page

Dedicated database infrastructure requires the Pro or Enterprise plan. Only workspace Owners can configure database settings.

Overview

By default, every organisation runs on Wexio's shared platform infrastructure. The Database page displays your current status:

InfrastructureDefaultDescription
MongoDB DatabaseSharedStores all your chats, messages, contacts, flows, and configuration
Redis CacheSharedHandles caching, sessions, and real-time features

You can see the total document count for your organisation and the connection status of each service.


Dedicated Database Infrastructure

Isolate your organisation's data onto dedicated MongoDB and Redis instances for enhanced performance, security, and compliance.

Benefits

BenefitDescription
Complete Data IsolationYour data lives in its own database instance, fully separated from other organisations
Dedicated PerformanceNo noisy neighbours — get consistent, predictable query performance and throughput
Custom RegionsChoose where your data lives. Deploy to any supported cloud region for compliance
Enhanced SecurityBring your own encryption keys, network policies, and access controls

Connecting a Dedicated Database

  1. Go to Settings → Database.
  2. Click Connect.
  3. Choose a migration mode (see below).
  4. Enter your MongoDB connection URI.
  5. Optionally enter a Redis connection URL.
  6. Choose what to do with data in the source database after migration.
  7. Click Connect to start the migration.
Database connection form

Migration Modes

When moving to a dedicated database, choose how to handle your existing data:

ModeWhat's CopiedBest For
MigrateAll data — chats, messages, contacts, flows, media, and configurationExisting organisations with data to preserve
FreshSystem configuration only — labels, custom fields, collections, AI settings, bots, integrationsNew setups or starting clean

Source Data Action

After migration completes, choose what happens to your data in the original (shared) database:

ActionDescription
DeleteRemove your organisation's data from the shared database after migration (recommended — prevents duplication)
KeepLeave a copy in the shared database as a backup

Migration duration depends on your data volume. During migration, your workspace remains operational but may experience brief interruptions.


Connection Requirements

Both MongoDB and Redis can be configured independently. You only need to provide the connection URIs.

Connection URIs are encrypted at rest and never displayed after submission. Ensure your database allows connections from Wexio's platform IP addresses.


Connection Status

After connecting, the Database page shows the health of each service:

StatusMeaning
SharedOrganisation uses the shared platform infrastructure (no dedicated instance)
ConnectedDedicated instance is configured and healthy (latency displayed in ms)
DisconnectedDedicated instance is configured but unreachable — check your connection URI and network access

Use the Refresh button to re-check connection health and update document counts at any time.


Data Collections

The Database page shows a breakdown of your data across MongoDB collections, split into two categories:

System Collections

Configuration data that defines your workspace setup:

CollectionDescription
LabelsOrganisation labels
Chat collectionsInbox collections
People field definitionsCustom contact field definitions
AI assistantsAI assistant configuration
BotsMessaging bot configuration
IntegrationsChannel integrations
WhatsApp templatesWhatsApp template configuration

Operational Collections

Day-to-day data generated through usage:

CollectionDescription
ChatsConversations
MessagesChat messages
PeopleContacts
FlowsAutomation flows
CardsFlow cards
MediaUploaded media files

Each collection shows its document count and accessibility status. The total document count is displayed at the top.


Migrating Back to Shared

If you need to revert to the shared platform database:

  1. Go to Settings → Database.
  2. Click Migrate Back to Shared.
  3. Choose the source data action — whether to keep or delete your data from the dedicated database after migration.
  4. Confirm the action.

If you choose Delete, your data will be removed from the dedicated database after migration. This cannot be undone.

Your organisation's data will be copied back to the shared platform and the dedicated connection will be removed.


On this page