CodesJava

Easy learning with example program codes

Redis vs MongoDB

Difference between Redis and Mongodb. Below is the comparative study between Redis and MongoDB.

 

REDISMONGODB
Developed by Salvatore Sanfilippo.Developed by MongoDB Inc.
Written in
Read More

CouchDB vs MongoDB

Difference between Couchdb and Mongodb. Below is the comparative study between CouchDB and MongoDB.

 

COUCHDBMONGODB
Uses HTTP/REST based interface.Uses binary protocol and custom protocol.
Read More

Cassandra vs MongoDB

Difference between cassandra and mongodb. Below is the comparative study between Cassandra and MongoDB.

 

CASSANDRAMONGODB
Written in Java.Written in C++.
It is a NoSQL
Read More

Mongodb sort query

In MongoDB, we can manually sort the documents in a collection in the selected database using db.collection_name.find().sort() method.

  • Type the command collection_name.find() in the command prompt to
Read More

Mongodb query limit fields

MongoDB limit() : 

In MongoDB, we can manually limit the fields of document that we want to retrieve from a collection in the selected database using db.collection_name.find().limit(Number) … Read More

Mongodb query documents

In MongoDB, we can manually retrieve a document from a collection in the selected database using db.collection_name.find() method.

  • Type the command use DATABASE_NAME in the command prompt
Read More

Mongodb delete documents

In MongoDB, we can manually delete a document from a collection in the selected database using db.collection_name.remove() method.

  • Type the command use DATABASE_NAME in the command prompt
Read More

Mongodb update documents

In MongoDB, we can insert a document using the upsert method into a collection, or we can update or modify the existing documents of a collection in … Read More

Mongodb insert document

In MongoDB, we can manually insert a document into a collection in the selected database using db.collection_name.insert() method. We can also insert a document using the upsert … Read More

MongoDB Drop collection

In MongoDB, we can manually drop a collection to completely delete a collection from a database using db.collection_name.drop() method.

  • Type the command use DATABASE_NAME in the command
Read More


Copyright © 2019 CodesJava DMCA.com Protection Status SiteMap Reference: Java Wiki