Difference between revisions of "Main Page"
From NoSQLZoo
m |
|||
Line 13: | Line 13: | ||
pp = pprint.PrettyPrinter(indent=4) | pp = pprint.PrettyPrinter(indent=4) | ||
</pre> | </pre> | ||
− | <div style="height:25em"> | + | <div style="min-height:25em"> |
{{TopTenTips}} | {{TopTenTips}} | ||
Learn NoSQL using: MongoDB, PyMongo, and Python3.4 | Learn NoSQL using: MongoDB, PyMongo, and Python3.4 | ||
+ | ==Tutorials: Learn NoSQL in stages== | ||
+ | ; [[FIND basics|x FIND basics]]:Using Find. | ||
+ | ; [[AGGREGATE world|x AGGREGATE world]]:In which we query the world collection and make use of aggregate functions. | ||
+ | ; [[MAPREDUCE basics|x MAPREDUCE basics]]:Using MapReduce. | ||
+ | ; [[MAPREDUCE elite|x MAPREDUCE elite]]:MapReduce questions using the Elite Dangerous dataset. | ||
</div> | </div> | ||
<div class=q data-lang="py3"> | <div class=q data-lang="py3"> | ||
Line 25: | Line 30: | ||
</pre> | </pre> | ||
</div> | </div> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==Reference: How to...== | ==Reference: How to...== | ||
; [[AGGREGATE examples]] | ; [[AGGREGATE examples]] |
Revision as of 13:19, 28 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
Tutorials: Learn NoSQL in stages
- x FIND basics
- Using Find.
- 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.
Show all the capital of France.
pp.pprint(list( db.world.find({"name":"France"},{"_id":0,"capital":1}) ))
Reference: How to...
- AGGREGATE examples
- FIND
- FIND examples
- MAPREDUCE
- NOSQLZOO: 'elite' dataset schema
- RegEx Pattern Matching