> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: Choose Your Database

## Article: Choose Your Database

## Article Link: https://dev.wix.com/docs/develop-websites-sdk/code-your-site/work-with-data/introduction/choose-your-database.md

## Article Content:

# Choose Your Database

When building a data-driven site with Wix, you can store your data in the built-in Wix CMS or an external database. The Wix CMS handles the vast majority of use cases, providing a fully managed, high-performance database solution that's optimized for Wix sites.

For specialized requirements that the CMS can't address, Wix also supports external database integration.

This article helps you understand when to use the CMS and the rare cases when external databases might be necessary.

## Database types

There are 3 main types of databases, each optimized for different use cases:

- **Document databases**: Store data as flexible documents, ideal for websites.
- **Relational databases**: Store data in structured tables with relationships, ideal for complex queries and transactions.
- **Analytical databases**: Store data optimized for reporting and analytics across large datasets.

Wix uses a document-oriented database for the CMS because document databases are best suited for websites. They store data as flexible documents that map naturally to the JSON objects used in web development, making it easy to store and retrieve the varied content types found on websites.

## Advantages of the Wix CMS

The Wix CMS provides several key benefits that make it the preferred choice for most projects:

- **Zero setup**: Data immediately available with no configuration required
- **Global performance**: Automatically replicated worldwide for fast access from any location
- **Built-in security**: PII encryption, GDPR compliance, and role-based security included by default
- **Automatic scaling**: Handles traffic spikes and growth without manual intervention

## Choose your database

The Wix CMS should be your default for most projects. However, you should consider using an external database if:

- You have existing database infrastructure that you don't want to migrate.
- You need advanced analytical capabilities across very large datasets.
- You have specific compliance requirements that require a particular database technology.
- You have an extremely large set of data.

For most other scenarios, the Wix CMS provides the best combination of performance, security, and ease of use.

## See also

- [About collections](https://dev.wix.com/docs/develop-websites-sdk/code-your-site/work-with-data/introduction/about-collections.md)
- [About the Data API](https://dev.wix.com/docs/develop-websites-sdk/code-your-site/work-with-data/data-api/about-the-data-api.md)
- [External Databases](https://dev.wix.com/docs/develop-websites-sdk/code-your-site/work-with-data/external-databases/integrating-external-databases.md)