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 1: Line 1:
<pre class=setup>
 
#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)
 
</pre>
 
 
{{TopTenTips}}
 
{{TopTenTips}}
  
<div class="q nonum" data-lang="py3" data-width="80">
+
<div class="q nonum" data-lang="mongo" data-width="80">
 
What is the capital of France?
 
What is the capital of France?
 
<pre class=def>
 
<pre class=def>
print( db.world.find_one({"name":"France"},{"capital":1}) )
+
db.world.find_one({"name":"France"},{"capital":1})
 
</pre>
 
</pre>
 
</div>
 
</div>
Line 25: Line 11:
 
Learn NoSQL using: MongoDB, PyMongo, and Python3.4
 
Learn NoSQL using: MongoDB, PyMongo, and Python3.4
 
==Tutorials: Learn NoSQL in stages==
 
==Tutorials: Learn NoSQL in stages==
; [[FIND basics|x FIND basics]]:Using Find.
+
; [[FIND Tutorial|Find Tutorial]]:Using Find.
 
; [[AGGREGATE world|x AGGREGATE world]]:In which we query the world collection and make use of aggregate functions.
 
; [[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 basics|x MAPREDUCE basics]]:Using MapReduce.

Revision as of 12:22, 3 December 2015

What is the capital of France?

db.world.find_one({"name":"France"},{"capital":1})

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

Tutorials: Learn NoSQL in stages

Find Tutorial
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.

Reference: How to...

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