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
(35 intermediate revisions by 3 users not shown)
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}}
Learn NoSQL using: MongoDB, PyMongo, and Python3.4
+
 
<div class=q data-lang="py3">
+
<div class="q nonum" data-lang="mongo" data-width="80">
Show all the data concering France.
+
What is the capital of France?
 
<pre class=def>
 
<pre class=def>
pp.pprint(list(
+
db.world.findOne({name:"France"},{capital:1})
    db.world.find({"name":"France"})
 
))
 
 
</pre>
 
</pre>
 
</div>
 
</div>
 +
 +
<div style="min-height:25em">
 +
Learn NoSQL using: MongoDB
 
==Tutorials: Learn NoSQL in stages==
 
==Tutorials: Learn NoSQL in stages==
; [[FIND basics|0 FIND basics]]:Some examples of common queries.
+
; 1 [[FIND Tutorial|Find Tutorial]]:Using Find.
; [[AGGREGATE basics|1 AGGREGATE basics]]:Examples of the aggregation framework.
+
; 2 [[AGGREGATE Tutorial|AGGREGATE Tutorial]]:In which we query the world collection and make use of aggregate functions. [[AGGREGATE Movies Tutorial|AGGREGATE Movies Tutorial]]
; [[AGGREGATE world|2 AGGREGATE world]]:In which we query the world collection and make use of aggregate functions.
+
; 3 [[MAPREDUCE tutorial]]:Using MapReduce.
; [[MAPREDUCE basics|3 MAPREDUCE basics]]:Using MapReduce.
+
; 4 [[MAPREDUCE elite|MAPREDUCE elite]]:MapReduce questions using the Elite Dangerous dataset.
; [[MAPREDUCE elite|4 MAPREDUCE elite]]:MapReduce questions using the Elite Dangerous dataset.
+
</div>
  
 
==Reference: How to...==
 
==Reference: How to...==
; [[Pattern Matching (RegEx)|1 Pattern Matching (RegEx)]]:Some pattern matching queries.
+
; [[AGGREGATE examples]]
 +
; [[Find|FIND]]
 +
; [[FIND examples]]
 +
; [[MapReduce | MAPREDUCE]]
 +
; [[Elite Document Structure|NOSQLZOO: 'elite' dataset schema]]
 +
; [[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 Documentaion] [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 23:03, 13 November 2016

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 Documentaion MongoDB Documentation GitHub
Python 3 Documentation PyMongo API Documentation
Karl Seguin's The Little MongoDB Book