0% found this document useful (0 votes)
31 views

NoSQL and Python Presentation)

This document provides an overview of NoSQL and how to use Python with MongoDB. It discusses the motivation for NoSQL as large amounts of data made relational databases less suitable. NoSQL databases are classified and some that are compatible with Python are listed, including MongoDB. The document then focuses on PyMongo, the Python driver for MongoDB, demonstrating how to install, connect to a database, perform queries and commands like insert, search, and indexing.

Uploaded by

biniaraixa
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views

NoSQL and Python Presentation)

This document provides an overview of NoSQL and how to use Python with MongoDB. It discusses the motivation for NoSQL as large amounts of data made relational databases less suitable. NoSQL databases are classified and some that are compatible with Python are listed, including MongoDB. The document then focuses on PyMongo, the Python driver for MongoDB, demonstrating how to install, connect to a database, perform queries and commands like insert, search, and indexing.

Uploaded by

biniaraixa
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

NoSQL And Python

Amol Gupta @amolgupta Harsh Vachhani @harshvachhani

Topics Covered
NoSQL

Need for change What is NoSQL Pros and cons

PyMongoDB Introduction Tutorial

The Motivation!
RDBMS

was fine for small applications Huge amount of data. Tables can not be used for everything.

RDBMS Approach

Solution

Classification

Wide Column Store / Column Families Document Store Key Value / Tuple Store Graph Databases Object Databases XML Databases

Python Compatible: MongoDB, Keyspace, Hypertable, Objectivity, Perst

SWOT-Analysis
Strengths

uninterrupted access/high availability Scalability Security and flexibility Freedom to choose

Continued
Weakness

Porting the applications No Normalization, unions or joins lost updates

Opportunities Huge investments Data Intensive applications Threats FOSS business model FUD amongst Users

Document-Oriented Storage Faster Updates Replication and High Availability Rich Queries Map Reduce GridFS Multiple language and platforms supported Commercial Support

#All Images used are registered trademarks of the respective companies

Pymongo
Python

distribution containing tools for working with MongoDB distribution contains three toplevel packages for interacting with MongoDB

Pymongo

Quick Start
Installation:

$ easy_install pymongo
Usage:

Start mongod instance $ mongod Making a connection >> from pymongo import Connection() >> connection = Connection()

Querying and Commands


Getting

or Creating

Database Collection Documents


Insert

Single Bulk

Querying and Commands...


Search

find_one() fetching single document find() more than one Range queries count()

Indexing

Questions?

References
http://nosql-database.org/ http://www.mongodb.org/

Thank You

You might also like