Cookies help us deliver our services. By using our services, you agree to our use of cookies. More information

Difference between revisions of "Main Page"

From NoSQLZoo
Jump to: navigation, search
Line 32: Line 32:
 
==Reference: How to...==
 
==Reference: How to...==
 
; [[AGGREGATE]]
 
; [[AGGREGATE]]
 +
; [[AGGREGATE examples]]
 
; [[Find|FIND]]
 
; [[Find|FIND]]
 
; [[FIND examples]]
 
; [[FIND examples]]

Revision as of 15:56, 27 July 2015

#ENCODING
import io
import sys
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-16')
#MONGO
from pymongo import MongoClient
client = MongoClient()
client.progzoo.authenticate('scott','tiger')
db = client['progzoo']
#PRETTY
import pprint
pp = pprint.PrettyPrinter(indent=4)

Learn NoSQL using: MongoDB, PyMongo, and Python3.4

Show all the capital of France.

pp.pprint(list(
    db.world.find({"name":"France"},{"_id":0,"capital":1})
))

Tutorials: Learn NoSQL in stages

x AGGREGATE world
In which we query the world collection and make use of aggregate functions.
x MAPREDUCE basics
Using MapReduce.
x MAPREDUCE elite
MapReduce questions using the Elite Dangerous dataset.

Reference: How to...

AGGREGATE
AGGREGATE examples
FIND
FIND examples
MAPREDUCE
NOSQLZOO: 'elite' dataset schema
RegEx Pattern Matching

MongoDB resources

Manuals
MongoDB Documentaion MongoDB Documentation GitHub
Python 3 Documentaion PyMongo API Documentation
Karl Seguin's The Little MongoDB Book