Couchbase · Document database
Document database: JSON documents with SQL++, indexes and ACID transactions
A document database stores each record as a self-describing document, usually JSON, instead of rows spread across tables. Applications read and write the record as a whole, and its structure can change without a schema migration. Couchbase is a document database that adds what enterprise workloads ask for: SQL++ queries, several kinds of index and ACID transactions. Interkey, a Couchbase technology partner, assesses, models, migrates and operates Couchbase for Saudi organisations, on Capella or on infrastructure inside the Kingdom.
Orientation
At a glance
The whole page in one table, before the detail.
- What it stores
- JSON documents (or binary values), each identified by a key unique within its collection
- How it is queried
- Key lookups, the Sub-Document API, and SQL++, a SQL-based language for JSON
- Indexes
- Primary, secondary, search and vector indexes, per Couchbase's documentation
- Transactions
- ACID transactions across several documents, through SQL++ or the SDKs
- Where it runs
- Couchbase Capella, including the Dammam region, or self-managed Couchbase Server in your data centre
- What Interkey does
- Workload review, modelling, migration and operation, from Riyadh
In short, for decision makers
- What it is: a database that keeps a customer, an order or a product as one JSON document, read and written whole.
- Why teams choose it: records whose shape changes often, high read and write volumes, and data spread across servers.
- What to insist on: a real query language, indexes on any field, and transactions for the operations that must succeed or fail together.
- Where Couchbase fits: it meets all three, managed or on your own servers in the Kingdom.
- Where it does not: heavy reporting, or a relational system that is coping well. We will say so.
What a document database is, and how it differs from tables
In a relational database a customer with three addresses and five orders lives in three tables, joined at every read. In a document store the same customer is one document: its fields, an array of addresses and, where the application reads them together, a summary of recent orders. Each document carries its own structure, so a new field arrives with the next release of the application, without a schema migration.
Read more
That is why a document oriented database suits records read and written as a unit. It also changes the work: the model is designed around how the application reads the data, and a relational schema copied table by table into documents usually performs worse than the original. Our guide to SQL and NoSQL sets out what to measure before you decide, and the NoSQL database page places the document model among the other NoSQL families.
Relatedguide to SQL and NoSQL
What a JSON document database must do for an enterprise workload
| Requirement | What to ask | How Couchbase answers |
|---|---|---|
| Document storage | What is stored, how is a record identified, and how large may it be? | JSON documents or binary values, each with a key unique within its collection. Couchbase states a maximum value size of 20 MiB |
| Query language | Can we filter, join, aggregate and update with a language our developers already read? | SQL++, a SQL-based query language for JSON documents |
| Partial reads and writes | Can one field change without sending the whole document back and forth? | The Sub-Document API reads or updates paths inside a document |
| Indexing | Can we index any field, search text, and run vector search? | Primary and secondary indexes for SQL++, search indexes for text, geospatial and range queries, and vector indexes |
| Transactions | Can several documents change together, all or nothing? | ACID transactions, with several statements between BEGIN TRANSACTION and COMMIT TRANSACTION in SQL++, or through the SDKs |
| Scaling | Can query, index and search capacity grow without adding data nodes? | Data, query, index, search, analytics, eventing and backup run as separate services, deployed and scaled independently |
| Replication | Can data be copied to a second data centre, and only the data we choose? | Cross data centre replication (XDCR), which can be selective |
| Where it runs | Can it run inside Saudi Arabia, and can we operate it ourselves? | Capella lists Google Cloud me-central2 (Dammam) as of November 2026; self-managed Couchbase Server runs in your own data centre |
The right-hand column is Couchbase's own, from its Couchbase Server 8.0 documentation, checked in November 2026. Ask any document store the same questions, against your own data.
How Couchbase works as a document store
Couchbase keeps documents in collections, each reached by its key, and a key lookup is the fastest path. Where the application needs one field, the Sub-Document API reads or changes that path alone.
Where the access is not by key, SQL++ does the work. It reads like SQL, extended for nested objects and arrays. "Close to SQL" is not "identical", so queries are redesigned for the document model rather than copied across. SQL++ depends on indexes: a primary index on the document key, and secondary indexes on the fields your queries filter and sort on. The Search Service adds full-text, geospatial and range search, and vector indexes support similarity search over embeddings.
Read more
For operations that change several records together, such as an order and the stock it reserves, Couchbase provides ACID transactions. A SQL++ transaction can hold several statements between BEGIN TRANSACTION and COMMIT TRANSACTION, and several SDKs support transactions in application code. Distributed transactions cost more than single-document writes, so we keep them for the operations that need them and model the rest so that one document holds what changes together. Expiry can also be set per document, which suits sessions. The Couchbase overview covers the migration method and the workloads where Couchbase is the wrong answer.
Where a document oriented database fits, and where it does not
A document model usually fits:
- customer and citizen profiles served to portals and mobile apps at high concurrency;
- product and service catalogues whose attributes differ by category;
- orders, bookings and applications read and updated as one record;
- field and mobile applications that also need offline sync (see mobile offline sync).
It usually does not fit:
- heavy ad-hoc reporting and cross-entity analysis, which belong on an analytical platform;
- a core that is truly relational, where money, stock or entitlements change together in most operations;
- an estate where nobody, in-house or contracted, will own a distributed database in production.
A cheaper first step is often to keep the system of record relational and serve one busy read path from a document store kept in step with it.
Relatedmobile offline sync
How a document database project runs with Interkey
-
Workload review.
Access patterns, transaction scope, volume, growth and the residency rule. It can conclude that you should stay where you are.
-
Data modelling.
Documents designed for how the application reads them: what is embedded, which keys and indexes, and which operations need transactions.
-
Model choice and sizing.
Capella or self-managed Couchbase Server, then node sizes, services, replicas and backup policy against real load.
-
Migration.
Data synced continuously from the current system, usually with iblync, Interkey's own product. Reads move service by service before writes, and cutover follows a rehearsed rollback.
-
Operation.
Monitoring, tuning, failover drills, backups and upgrades, under a written scope or alongside your DBAs.
Cost, data residency and support for a document database in Saudi Arabia
Couchbase Capella is billed per node per hour, scaled by each node's vCPU and RAM; Interkey sells it, so one quote can cover Capella credits and our work. Self-managed Couchbase Server is a subscription priced by the number of production nodes, quoted alongside our work. Our effort follows the number of services that touch the data, how far the current schema is from a document model, and how long both systems run side by side. Durations are estimated after the workload review.
Read more
Residency usually decides the deployment model. As of November 2026, Capella's published regions include Google Cloud's Dammam region (me-central2); the Capella or self-managed page lists what to check with your compliance owner. Where data must sit on infrastructure you control, self-managed Couchbase Server runs in your own data centre in the Kingdom. For personal data, the Personal Data Protection Law overseen by the Saudi Data and AI Authority (SDAIA) belongs in the same discussion. The platform is Couchbase's, a technology partner; the assessment, modelling, migration and operation are done by Interkey's engineers in Riyadh, in Arabic or English.
RelatedCapella or self-managed pageSaudi Data and AI Authority (SDAIA)
Questions buyers ask
What is the difference between a document database and a relational database?
A relational database splits a record across tables and joins them at read time. A document database keeps the record as one JSON document whose fields can vary.
Can a JSON document database run complex queries, or only key lookups?
Couchbase answers both. Key lookups are the fastest path, and SQL++ adds filters, joins, aggregation and updates over JSON, supported by secondary indexes on the fields you query.
Does a document store support ACID transactions across several documents?
Couchbase does: a SQL++ transaction can hold several statements between BEGIN TRANSACTION and COMMIT TRANSACTION, and several SDKs support transactions too. We keep them for operations that must change together, because distributed transactions cost more than single-document writes.
Can we keep a Couchbase document database inside Saudi Arabia?
Yes. Self-managed Couchbase Server runs in your own data centre in the Kingdom, and as of November 2026 Capella lists Google Cloud's Dammam region. Whether a region is enough depends on your data classification and where backups and replication go.
How is a document database licensed and priced in KSA?
Capella is billed per node per hour and Interkey sells it; self-managed Couchbase Server is a subscription by production node. There is no fixed price here: we quote after sizing, with the licence shown separately from our work.
Who supports the document database after go-live?
Interkey operates the cluster under a written managed-services scope, or backs your own DBAs, from Riyadh in Arabic or English.
Next
Related pages
Next step
Check whether your workload fits a document model
Tell us what the data serves, the database it runs on now, its rough size and where it must be hosted. The engineers who would model and migrate it reply.
Or directly
+966-11-2180999 [email protected]Tawuniya Towers, North Tower, 7th Floor, King Fahad Highway, Olaya, P.O. Box 56835, Riyadh 11564, Saudi Arabia