Python, Mongodb, Falcon

Search

Search for:

Text Widget

This is a text widget, which allows you to add text or HTML to your sidebar. You can use them to display text, links, images, HTML, or a combination of these. Edit them in the Widget section of the Customizer.

MONGODB BASICS

Mongodb has _id of 12 bytes which assures the uniqueness of every document:
first 4 bytes :for the current timestamp,
next 3 bytes :for machine id,
next 2 bytes :for process id of mongodb server and
remaining 3 bytes :are simple incremental value.

MongoDB built in features :

1. Single machine having multiple database.
2. Mongodb Searches by field.
3. Scalable: we can add machine in a running system.
4. Any field in a document can be indexed.
5. Support master-slave replication :Master can perform read and write.
: Slave can copy master’s data and can only be use for read and backup but not for write.
6. It runs over multiple machines.
7. Copy data to keep system up in case of failure.
8. Special support for location.
9. Java script can be used in queries.

MongoDB shell version: 3.2.11
connecting to: test
Server has startup warnings:
2016-12-07T09:36:19.618+0530 I CONTROL [initandlisten]
2016-12-07T09:36:19.618+0530 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is ‘always’.
2016-12-07T09:36:19.618+0530 I CONTROL [initandlisten] ** We suggest setting it to ‘never’
2016-12-07T09:36:19.618+0530 I CONTROL [initandlisten]
2016-12-07T09:36:19.618+0530 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is ‘always’.
2016-12-07T09:36:19.618+0530 I CONTROL [initandlisten] ** We suggest setting it to ‘never’
2016-12-07T09:36:19.618+0530 I CONTROL [initandlisten]
>To see all database: