Document Database
Document Database
Source: https://aws.amazon.com/nosql/document/
Advantages
Scalability: Document databases scale horizontally, like other No-
SQL databases, across multiple servers without impacting
performance which is cost-efficient as well!
Document databases provide fault tolerance and availability through
built-in replication.
db.towns.insert ({
name: "New York“,
population: 22200000
})
CRUD Operations
An example: the following command lists the collections
present in the database:
> show collections
towns
It can be dangerous to insert any old value of any type into any
collection.
A single typing error can cause hours of headache if you don’t care
to look at field names and collection names while adding values!
Security is also a concern as user-authentication is not enabled by
default.
CouchDB was designed with the web in mind and all the
innumerable flaws, faults, failures, and glitches that come
with it. Consequently, CouchDB offers a robustness in terms
of availability of the database (trade-off with consistency).
CouchDB’s Strengths:
CouchDB’s drawbacks:
◦ Of course, CouchDB isn’t well suited for everything – it doesn’t
support ad-hoc queries unlike MongoDB!