Ans:
CRITERIA
MONGODB
CASSANDRA
Ans: MongoDB is considered to be best NoSQL database because of :Document-oriented (DO)
Ans: MongoDB does not use conventional locking with reduction, as it is planned to be light, high-speed and knowable in its presentation. It can be considered as parallel to the MySQL MyISAM auto entrust sculpt. With simplest business sustain, performance is enhanced, particularly in a structure with numerous servers.
Ans: The MongoDB scrap stands on a collection. So an album of all substances is kept in a lump or mass. Only when there is an additional time slot, there will be more than a few slice data achievement choices, but when there is more than 1 lump, data gets extended to a lot of slices and it can be extended to 64 MB.
Ans: Although Mongo DB with Couchbase and Couchbase DB are common in many ways, but still they are different in the case of necessities for execution of the model, crossing points, storage, duplications, etc.
Ans: During sequencing of the names of the database and collection name Namespace is used.
Ans: Yes, it is deleted. So better eliminate the attribute and then save the object again.
Ans: Once the functions are done, the old files are converted to backup files and moved to the moveChunk directory at the time of balancing the slices.
Ans: When an index is too huge to fit into RAM, then MongoDB reads the index, which is faster than reading RAM because the indexes easily fit into RAM if the server has got RAM for indexes along with the remaining set.
Ans: MongoDB uses the reader-writer locks, allowing simultaneous readers to access any supply like a database or any collection. But always offers private access to singles writes.
Ans: Mongo DB is not considered as a 32-bit system because for running the 32-bit MongoDB, with the server, information and indexes require 2 GB. So only it is not used in 32-bit devices.
Ans: Write operations are saved in the memory while journaling is going on. The on-disk journal files are really dependable for the reason that the journal writes are habitual. Inside dbPath, a journal subdirectory is designed by MongoDB.
Ans: Snapshot () method is used to isolate cursors from intervening with writes. This method negotiates the index and makes sure that each query comes to any article only once.
Ans: It is document oriented database which is used to high availability, easy scalability and high performance. It supports the dynamic schema design.
Ans: It is a group of mongo instances that maintain same data set. Replica sets provide redundancy and high availability, and are the basis for all production deployments.
Ans: There are 3 main features of mongodb that are automatic scaling, High performance and high availability.
Ans: Mongodb provides CRUD operations that are create, Read, Update, Delete.
Ans: Sharding means to store the data on the multiple machines.
Ans: Aggregations are operations that process data records and return computed results.
Ans: It is the concatenation of collection name and database.
Ans: db.createCollection(name,options) is used to create collection in mongodb.
Ans: db.collection.drop() is used to drop collection in mongodb.
Ans: Replication is the process of synchronizing data across multiple servers.
Ans: Indexes provide high performance read operations for frequently used queries.
Ans: database.collection.insert (document) is used for inserting a document.
Ans: GridFS is used for storing and retrieving the large files like audio, Images, Video files.
Ans: Journaling is used to safe backups in mongodb.
Ans: db_adminCommand (“connPoolStats”); is used to see the connection.
Ans: The primary replica set accepts all write operations from clients.
Ans: The secondaries (page 565) replicate the primary’s oplog and apply the operations to their data sets such that the secondaries’ data sets reflect the primary’s data set.
Ans: Profiler is used to show the performance characteristics of every operation against the database.
Ans: MongoDB stores data in the form of documents, which are JSON-like field and value pairs.
Ans: Replication provides redundancy and increases data availability.
Ans: Embedded documents capture relationships between data by storing related data in a single document structure.
Ans: Application Level Encryption provides encryption on a per-field or per-document basis within the application layer.
Ans: Storage Encryption encrypts all MongoDB data on the storage or operating system to ensure that only authorized processes can access protected data.
Ans: CreateIndex() method is used to create an index.
Ans: The oplog records all operations that modify the data in the replica set.
Ans: Vertical scaling adds more CPU and storage resources to increase capacity.
Ans: It divides the data set and distributes the data over multiple servers, or shards.
Ans: Sharded cluster has the following components: shards, query routers and config servers.
Ans: DATABASE_NAME command is used to create database.
Ans: db.dropDatabse() command is used to drop the database.
Ans: Pretty() method is used to show the results in a formatted way.
Ans: Remove() method is used to remove the document form the collection.
Ans: Projection is used to select only necessary data.It did not select whole data of a document.
Ans: Limit() method is used to limit the records in database.
Ans: db.COLLECTION_NAME.find().limit(NUMBER) syntax is used.
Ans: db.COLLECTION_NAME.find().sort({KEY:1}) syntax is used for sorting the documents.
Ans: Mongodump command is used to create the backup of database.