Introduction To Document Databases
Introduction To Document Databases
Databases
• Document databases stores information different from traditional BD Instead
of using tables with rows and columns like in a spreadsheet, they store data as
"documents."
• These documents are similar to files you might use on your computer, and
they are often in formats like JSON.
a
Example of json format storing online product databse:
Key Features of Document Databases
• Flexible Structure: You don't need a fixed layout for your data. Each item can have different fields.
• Stores Documents: Data is stored as documents (like files) in formats such as JSON or BSON.
• Easy to Update: You can add or change fields without disrupting the whole database.
• Human-Readable Format: The data is easy to read and write because it looks like simple text.
• Good for Complex Data: Ideal for storing data that doesn’t fit neatly into tables, like product catalogs or user profiles.
• High Performance: Optimized for fast read and write operations, even with large amounts of data.
Scalability and High Availability
Scalility in document database:
Handling Growth: Document databases can handle a growing amount of data without
sacrificing performance.
Flexible schema:
If you want to add data in document database you simply add resource and servers
without affecting previous data.
Replication:
data is copied and stored on multiple servers or nodes. If one server fails, another can
take over, ensuring uninterrupted service .
Use Cases for Document Databases
Mobile Apps
Web Applications Document databases Content
allow mobile apps to Management
In web applications,
store data locally on the
document databases can Document databases are
device, even when
be used to store various well-suited for content
there's no internet
types of data such as management systems
connection. This means
user profiles, product that need to store and
users can still access
information, blog posts, manage large volumes
and interact with their
and comments.. of unstructured data.
data, like notes or
messages, without
needing to be online.
CONCLUSION: