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
(20 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<pre class=setup>
+
 
#ENCODING
+
<div class="q nonum" data-lang="mongo">
import io
+
  What is the capital of France?
import sys
+
  <pre class="def">db.world.findOne({name:"France"},{capital:1})</pre>
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-16')
+
</div>
#MONGO
 
from pymongo import MongoClient
 
client = MongoClient()
 
client.progzoo.authenticate('scott','tiger')
 
db = client['progzoo']
 
#PRETTY
 
import pprint
 
pp = pprint.PrettyPrinter(indent=4)
 
</pre>
 
<div style="height:25em">
 
 
{{TopTenTips}}
 
{{TopTenTips}}
Learn NoSQL using: MongoDB, PyMongo, and Python3.4
+
<div style="min-height:25em">
 +
Learn NoSQL using: MongoDB
 +
==Tutorials: Learn NoSQL in stages==
 +
; 1 [[FIND Tutorial|Find Tutorial]]:Using Find.
 +
; 2 [[AGGREGATE Tutorial|AGGREGATE Tutorial]]:In which we query the world collection and make use of aggregate functions. [[AGGREGATE Movies Tutorial|AGGREGATE Movies Tutorial]]
 +
; 3 [[MAPREDUCE Tutorial]]:Using MapReduce.
 +
; 4 [[MAPREDUCE Elite]]:MapReduce questions using the Elite Dangerous dataset.
 
</div>
 
</div>
<div class=q data-lang="py3">
 
Show all the capital of France.
 
<pre class=def>
 
pp.pprint(list(
 
    db.world.find({"name":"France"},{"_id":0,"capital":1})
 
))
 
</pre>
 
</div>
 
==Tutorials: Learn NoSQL in stages==
 
; [[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.
 
  
 
==Reference: How to...==
 
==Reference: How to...==
; [[AGGREGATE]]
 
 
; [[AGGREGATE examples]]
 
; [[AGGREGATE examples]]
 
; [[Find|FIND]]
 
; [[Find|FIND]]
 
; [[FIND examples]]
 
; [[FIND examples]]
; [[MAPREDUCE]]
+
; [[MapReduce | MAPREDUCE]]
 
; [[Elite Document Structure|NOSQLZOO: 'elite' dataset schema]]
 
; [[Elite Document Structure|NOSQLZOO: 'elite' dataset schema]]
 
; [[RegEx Pattern Matching]]
 
; [[RegEx Pattern Matching]]
  
 
==MongoDB resources==
 
==MongoDB resources==
;Manuals: [http://docs.mongodb.org/manual/ MongoDB Documentaion] [https://github.com/mongodb/docs MongoDB Documentation GitHub]<br/>[https://docs.python.org/3/ Python 3 Documentaion] [http://api.mongodb.org/python/current/ PyMongo API Documentation]<br/> Karl Seguin's [http://openmymind.net/mongodb.pdf The Little MongoDB Book]
+
;Manuals: [http://docs.mongodb.org/manual/ MongoDB Documentation] [https://github.com/mongodb/docs MongoDB Documentation GitHub]<br/>[https://docs.python.org/3/ Python 3 Documentation] [http://api.mongodb.org/python/current/ PyMongo API Documentation]<br/> Karl Seguin's [http://openmymind.net/mongodb.pdf The Little MongoDB Book]

Revision as of 00:06, 9 April 2018

 What is the capital of France?
db.world.findOne({name:"France"},{capital:1})

Learn NoSQL using: MongoDB

Tutorials: Learn NoSQL in stages

1 Find Tutorial
Using Find.
2 AGGREGATE Tutorial
In which we query the world collection and make use of aggregate functions. AGGREGATE Movies Tutorial
3 MAPREDUCE Tutorial
Using MapReduce.
4 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 Documentation MongoDB Documentation GitHub
Python 3 Documentation PyMongo API Documentation
Karl Seguin's The Little MongoDB Book