com presentations: Reformat.: slides/map/finding-food-import-mongo2.xml slides/map/import-script2.xml slides/mongodb/commands-aggregation.xml
slides/mongodb/embed-vs-link.xml slides/mongodb/inherit-rdbms.xml slides/mongodb/one-to-many4.xml slides/mongodb/osm-schema2.xml
slides/mongodb/osm-to-mongo-data.xml

From: Date: Mon, 24 Jun 2013 11:51:59 +0000
Subject: com presentations: Reformat.: slides/map/finding-food-import-mongo2.xml slides/map/import-script2.xml slides/mongodb/commands-aggregation.xml
slides/mongodb/embed-vs-link.xml slides/mongodb/inherit-rdbms.xml slides/mongodb/one-to-many4.xml slides/mongodb/osm-schema2.xml
slides/mongodb/osm-to-mongo-data.xml
Groups: php.pres 
Request: Send a blank email to pres+get-1903@lists.php.net to get a copy of this message
Commit: 475accb47399d83e287d3b8ca9bbbf6fdccca38d Author: Derick Rethans <github@derickrethans.nl> Mon, 24 Jun 2013 12:51:59 +0100 Parents: eb1be1a16a3cdade87896a1284510ae096c6c8ed Branches: master Link: http://git.php.net/?p=presentations.git;a=commitdiff;h=475accb47399d83e287d3b8ca9bbbf6fdccca38d Log: Reformat. Changed paths: M slides/map/finding-food-import-mongo2.xml M slides/map/import-script2.xml M slides/mongodb/commands-aggregation.xml M slides/mongodb/embed-vs-link.xml M slides/mongodb/inherit-rdbms.xml M slides/mongodb/one-to-many4.xml M slides/mongodb/osm-schema2.xml M slides/mongodb/osm-to-mongo-data.xml Diff: diff --git a/slides/map/finding-food-import-mongo2.xml b/slides/map/finding-food-import-mongo2..xml index 80232a4..ab285e9 100644 --- a/slides/map/finding-food-import-mongo2.xml +++ b/slides/map/finding-food-import-mongo2.xml @@ -31,24 +31,30 @@ <td> <example>{ - "_id" : "w77002328", - "type" : NumberLong(2), - "tags" : [ - "addr:housenumber=16", - "addr:postcode=W1J 5HP", - "addr:street=Curzon Street", - "amenity=restaurant", - "building=yes", - "cuisine=lebanese", - "name=Noura" - ], - "loc" : [ - [ -0.1479191, 51.5067744 ], - [ -0.1480757, 51.5067491 ], - [ -0.1481252, 51.5068679 ], - [ -0.1479687, 51.5068932 ], - [ -0.1479191, 51.5067744 ] - ] + "_id" : "w77002328", + "ty" : NumberLong(2), + "l" : { + "type" : "Polygon", + "coordinates" : [ + [ + [ -0.1479191, 51.5067744 ], + [ -0.1480757, 51.5067491 ], + [ -0.1481252, 51.5068679 ], + [ -0.1479687, 51.5068932 ], + [ -0.1479191, 51.5067744 ] + ] + ] + }, + "ts" : [ + "addr:housenumber=16", + "addr:postcode=W1J 5HP", + "addr:street=Curzon Street", + "amenity=restaurant", + "building=yes", + "contact:phone=+44 20 74951050", + "cuisine=lebanese", + "name=Noura" + ] } </example> </td> diff --git a/slides/map/import-script2.xml b/slides/map/import-script2.xml index 3715c06..0fb7f4a 100644 --- a/slides/map/import-script2.xml +++ b/slides/map/import-script2.xml @@ -2,26 +2,29 @@ <title>Importing the Data</title> <list> - <bullet>Open file with XML Reader</bullet> - <bullet>Loop over all nodes, and: - <list> - <bullet>Store the node in the database</bullet> - </list> - </bullet> - <bullet>Loop over all the ways, and: - <list> - <bullet>Look up locations for each node in the database</bullet> - <bullet>Store the way into the database</bullet> - </list> - </bullet> + <bullet>Open file with XML Reader</bullet> + <bullet>Loop over all nodes, and: + <list> + <bullet>Store the node in the database</bullet> + </list> + </bullet> + <bullet>Loop over all the ways, and: + <list> + <bullet>Look up locations for each node in the database</bullet> + <bullet>Store the way into the database</bullet> + </list> + </bullet> </list> <example> -"count" : 2253986 -"size" : 298385216 -"avgObjSize" : 132.38113102743318 -"totalIndexSize" : 443695168 +"count" : 2801187 +"size" : 591099280 +"avgObjSize" : 211.0174 +"totalIndexSize" : 650564320 "indexSizes" : { - "_id_" : 118846336, "loc_2d" : 163757104, "tags_1" : 161091728 + "_id_" : 153463520, + "l_2dsphere" : 174737472, + "ts_1" : 182692720, + "ty_1" : 139670608 } </example> </slide> diff --git a/slides/mongodb/commands-aggregation.xml b/slides/mongodb/commands-aggregation.xml index 24a39b0..fef7593 100644 --- a/slides/mongodb/commands-aggregation.xml +++ b/slides/mongodb/commands-aggregation.xml @@ -1,17 +1,14 @@ <slide> <title>Aggregation Framework</title> -<subtitle>New in 2.2</subtitle> -<blurb>Powerfull framework for running multiple operations in a pipeline, mostly replacing M/R.</blurb> -<blurb>Operations are:</blurb> +<blurb>Powerfull framework for running multiple operations in a pipeline, mostly replacing M/R:</blurb> <list> <bullet>%$match%: for matching documents, à la %find()%.</bullet> <bullet>%$project%: for "rewriting" documents, but more powerful with - computed expressions: adding fields (%$add%), conditions (%$ifNull%), + computed expressions: adding fields (%$add%), string functions (%$toLower%), etc</bullet> <bullet>%$unwind%: hands out array elements each at a time</bullet> <bullet>%$group%: aggregates items into buckets defined by key</bullet> - <bullet>%$sort%</bullet> - <bullet>%$limit% / %$skip%</bullet> + <bullet>%$sort%, %$limit%, and %$skip%</bullet> </list> </slide> diff --git a/slides/mongodb/embed-vs-link.xml b/slides/mongodb/embed-vs-link.xml index 9209e3e..e371ea6 100644 --- a/slides/mongodb/embed-vs-link.xml +++ b/slides/mongodb/embed-vs-link.xml @@ -5,17 +5,14 @@ <list> <bullet>Simple data structure</bullet> <bullet>Limited to 16MB</bullet> - <bullet>Larger documents</bullet> <bullet>How often do you update?</bullet> <bullet>Will the document grow and grow?</bullet> </list> -<break/> <blurb>Linking</blurb> <list> <bullet>More complex data structure</bullet> <bullet>Unlimited data size</bullet> <bullet>More, smaller documents</bullet> - <bullet>What are the maintenance needs?</bullet> </list> </slide> diff --git a/slides/mongodb/inherit-rdbms.xml b/slides/mongodb/inherit-rdbms.xml index 92cd313..aee0ceb 100644 --- a/slides/mongodb/inherit-rdbms.xml +++ b/slides/mongodb/inherit-rdbms.xml @@ -8,4 +8,5 @@ <tr><td>3</td><td>rectangle</td><td>10</td> <td></td><td></td><td>5</td><td>2</td></tr> </table> +<image filename="tcs.jpg"/> </slide> diff --git a/slides/mongodb/one-to-many4.xml b/slides/mongodb/one-to-many4.xml index 03fbcd5..776118f 100644 --- a/slides/mongodb/one-to-many4.xml +++ b/slides/mongodb/one-to-many4.xml @@ -2,8 +2,7 @@ <title>Linking Articles and Views</title> <blurb>Article collection:</blurb> -<example><![CDATA[{ - _id: 4, +<example><![CDATA[{ _id: 4, name: "Derick's MongoDB Tour Wrap-up", date: "2012-10-01", comments: [ @@ -11,8 +10,7 @@ { name: "Jake", text: "I don't think you can ever re...." }, ], }, -{ - _id: 7, +{ _id: 7, name: "What is PHP doing?", date: "2012-07-13", comments: [ diff --git a/slides/mongodb/osm-schema2.xml b/slides/mongodb/osm-schema2.xml index 30ded34..1dab339 100644 --- a/slides/mongodb/osm-schema2.xml +++ b/slides/mongodb/osm-schema2.xml @@ -21,7 +21,7 @@ $db->poi->find( [ 'tags.k' => 'highway' ] ); <bullet>Two indexes required: <list> <bullet>one for key/value combinations</bullet> - <bullet>one for "all roads" question (on %tags_indexed.k%)</bullet> + <bullet>one for "all roads" question (on %tags.k%)</bullet> </list> </bullet> <bullet>Good for finding key/value combinations</bullet> diff --git a/slides/mongodb/osm-to-mongo-data.xml b/slides/mongodb/osm-to-mongo-data.xml index e38faa7..d3db1a1 100644 --- a/slides/mongodb/osm-to-mongo-data.xml +++ b/slides/mongodb/osm-to-mongo-data.xml @@ -10,6 +10,11 @@ Tags: highway = secondary source:ref = OS OpenData StreetView </example> +<div effect="fade-out"> +<break lines="2"/> +<image filename="brondesbury.jpg"/> +</div> + <div effect="fade-in-out"> <blurb>Simplest way:</blurb> <example>

« previous php.pres (#1903) next »