MongoDB: Convert BSON to JSON

  MongoDB stores data in the form of JSON-like documents and uses BSON (binary encoded data format) to serialize the documents for storage and data transfers. MongoDB is great at BSON objects, but that's not convenient all the times. Consider, you are developing a Webb App that requires server side implementation to render JSON objects? … Continue reading MongoDB: Convert BSON to JSON

Tornado – MongoDB

Yes, Tornado gells well with many databases like mysql, sqlite and mongodb. Below is an example of database connectivity and interaction with MongoDB from Tornado. In this example, the user or client connects MongoDB database : library and collection: articles )with HTTP requests. get() - displays the records of mongodb collection with article id post() … Continue reading Tornado – MongoDB

Pymongo: Python Driver for MongoDB

This post describes the installation and upgrade procedures on Ubuntu 10.04 Installation with pip ubuntu@ubuntu:~$ sudo pip install pymongo [sudo] password for ubuntu: Downloading/unpacking pymongo Downloading pymongo-2.2.1.tar.gz (230Kb): 230Kb downloaded Running setup.py egg_info for package pymongo Installing collected packages: pymongo Running setup.py install for pymongo building 'bson._cbson' extension gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 … Continue reading Pymongo: Python Driver for MongoDB

MongoDB: CRUD

With a bit of intro, lets get to some work with MongoDB. CRUD in programming terms often refers to, C: Create, R: Read, U: Update, D: Delete Operations. So how do we achieve them? Create MongoDB shell version: 1.2.2 url: test connecting to: test type "exit" to exit type "help" for help > use studDB … Continue reading MongoDB: CRUD

Intro to Mongodb

I came across MongoDB a few months ago and have taken decent strides to understand it. This post is to introduce MongoDB to the readers along with basic installation and setup steps on Ubuntu10.04. MongoDB Falls under the family of NoSQL database Unlike relational database (row/column), its a document based database Provides indexing, dynamic querying … Continue reading Intro to Mongodb