NoSQL Zoo: Difference between revisions
From NoSQLZoo
mNo edit summary |
No edit summary |
||
| Line 26: | Line 26: | ||
</div> | </div> | ||
==Tutorials: Learn NoSQL in stages== | ==Tutorials: Learn NoSQL in stages== | ||
; [[AGGREGATE world|x AGGREGATE world]]:In which we query the world collection and make use of aggregate functions. | |||
; [[AGGREGATE world| | ; [[MAPREDUCE basics|x MAPREDUCE basics]]:Using MapReduce. | ||
; [[MAPREDUCE basics| | ; [[MAPREDUCE elite|x MAPREDUCE elite]]:MapReduce questions using the Elite Dangerous dataset. | ||
; [[MAPREDUCE elite| | |||
==Reference: How to...== | ==Reference: How to...== | ||
; [[AGGREGATE]] | ; [[AGGREGATE]] | ||
; [[Find|FIND]] | ; [[Find|FIND]] | ||
; [[FIND examples]] | |||
; [[MAPREDUCE]] | ; [[MAPREDUCE]] | ||
; [[Elite Document Structure|NOSQLZOO: 'elite' dataset schema]] | ; [[Elite Document Structure|NOSQLZOO: 'elite' dataset schema]] | ||
Revision as of 14:55, 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.