We are now, simply, Redis

Learn More

What is a Document Database?

A document database (also called a NoSQL document store) is a non-relational database that stores data as structured documents. It is a modern way to store data in JSON format rather than simple rows and columns. A document can be a PDF, a document, or an XML or JSON file.

Side-by-side structure of document and key-value data

When to use a document database

  • When your application needs data that isn’t tabular.
  • When your application needs to handle lots of small continuous reads and writes and all you need is fast in-memory access.
  • When your application needs to build CRUD(Create, Read, Update and Delete) apps.
  • When your application needs to operate over a wide variety of access patterns and data types; these generally are flexible and perform well.

Use cases for document databases

  • Content management systems.
  • User profiles.
  • E-commerce websites.
  • Middleware applications that use JSON.

RedisJSON

RedisJSON is a popular Redis module that provides in-memory manipulation of JSON documents at high velocity and volume. With RedisJSON, you can natively store document data in a hierarchical, tree-like format to scale and query documents efficiently, significantly improving performance over storing and manipulating JSON with Lua and core Redis data structures. The native data type it applies is the Standard ECMA-404, using the Standard JSON Data Interchange Syntax. RedisJSON outperforms any other technique for storing JSON objects in Redis, such as using Lua for manipulating JSON or MessagePack objects.

Next section  ►  TimeSeries databases