com presentations: An Evening with MongoDB Montreal talks and welcome.: mongo-osm-montreal-evening.xml slides/map/finding-food-import-mongo2.xml
slides/map/import-script1.xml slides/map/import-script2.xml slides/map/mongo-country.xml slides/mongodb/evening-welcome.xml
slides/mongodb/history-1.8-2.4.xml slides/mongodb/history-2.2.xml slides/mongodb/ongoing.xml slides/mongodb/osm-schema-summary.xml
slides/mongodb/osm-schema1.xml slides/mongodb/osm-
| From: | Derick Rethans | Date: | Tue, 26 Feb 2013 20:45:43 +0000 |
| Subject: | com presentations: An Evening with MongoDB Montreal talks and welcome.: mongo-osm-montreal-evening.xml slides/map/finding-food-import-mongo2.xml slides/map/import-script1.xml slides/map/import-script2.xml slides/map/mongo-country.xml slides/mongodb/evening-welcome.xml slides/mongodb/history-1.8-2.4.xml slides/mongodb/history-2.2.xml slides/mongodb/ongoing.xml slides/mongodb/osm-schema-summary.xml slides/mongodb/osm-schema1.xml slides/mongodb/osm- |
||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-1872@lists.php.net to get a copy of this message | ||
Commit: f562a300124fbcc4252c5d2907571d2f88f13f35
Author: Derick Rethans <github@derickrethans.nl> Tue, 26 Feb 2013 15:45:43 -0500
Parents: 7bf1c524266f1f684b42cf793280ac18f701d234
Branches: master
Link: http://git.php.net/?p=presentations.git;a=commitdiff;h=f562a300124fbcc4252c5d2907571d2f88f13f35
Log:
An Evening with MongoDB Montreal talks and welcome.
Changed paths:
A mongo-osm-montreal-evening.xml
M slides/map/finding-food-import-mongo2.xml
M slides/map/import-script1.xml
M slides/map/import-script2.xml
M slides/map/mongo-country.xml
A slides/mongodb/evening-welcome.xml
A slides/mongodb/history-1.8-2.4.xml
A slides/mongodb/history-2.2.xml
A slides/mongodb/ongoing.xml
A slides/mongodb/osm-schema-summary.xml
M slides/mongodb/osm-schema1.xml
M slides/mongodb/osm-schema3.xml
A slides/mongodb/osm-schema4.xml
A slides/mongodb/program-yul-evening-after-intro.xml
A slides/mongodb/program-yul-evening.xml
A slides/mongodb/roadmap-2.4.xml
A slides/mongodb/what-can-i-do.xml
M templates/default/th.ezt
diff --git a/mongo-osm-montreal-evening.xml b/mongo-osm-montreal-evening.xml new file mode 100644 index 0000000..58af8c7 --- /dev/null +++ b/mongo-osm-montreal-evening.xml @@ -0,0 +1,67 @@ +<?xml version="1.0" encoding="utf-8"?> +<presentation css="10gen-strict.css"> +<topic>Maps</topic> +<title>Store a city, a country or even a planet in your DB</title> +<event>An Evening with MongoDB, Montreal</event> +<location>Montréal, Canada</location> +<date>February 26th, 2013</date> +<speaker>Derick Rethans</speaker> +<email>derick@10gen.com</email> +<twitter>derickr</twitter> +<joindin></joindin> + +<slide>slides/mongodb/evening-welcome.xml</slide> +<slide>slides/mongodb/program-yul-evening.xml</slide> + +<slide>slides/mongodb/history-1.8-2.4.xml</slide> +<slide>slides/mongodb/history-2.2.xml</slide> +<slide>slides/mongodb/roadmap-2.4.xml</slide> +<slide>slides/mongodb/ongoing.xml</slide> +<slide>slides/mongodb/what-can-i-do.xml</slide> + +<slide>slides/mongodb/program-yul-evening-after-intro.xml</slide> + +<slide>slides/map/title.xml</slide> + +<!-- +In this talk I will be explaining the strong points of OpenStreetMap and why +using GoogleMaps for your websites is generally a bad idea. Contrary to popular +belief, GoogleMaps isn't as amazing as it looks and they are a lot more evil +than they look. OpenStreetMap's data is also easily accessible for use in PHP +applications and the generated tiles can easily be embedded into a Web 2.0 +application. Its open nature is a welcome and powerful geo database that can be +added to and used in whatever way imaginary. +--> + +<!-- +What is X? +--> +<slide>slides/map/osm-what.xml</slide> + +<slide>slides/map/osm-data.xml</slide> + +<slide>slides/map/osm-tags1.xml</slide> +<slide>slides/map/osm-tags2.xml</slide> +<slide>slides/map/osm-tags3.xml</slide> +<slide>slides/map/osm-tags4.xml</slide> + +<slide>slides/map/osm-xapi.xml</slide> +<slide>slides/mongodb/osm-to-mongo-data.xml</slide> +<slide>slides/mongodb/osm-to-mongo-data2.xml</slide> +<slide>slides/mongodb/osm-to-mongo-data3.xml</slide> +<slide>slides/mongodb/osm-to-mongo-data4.xml</slide> +<slide>slides/mongodb/osm-schema1.xml</slide> +<slide>slides/mongodb/osm-schema2.xml</slide> +<slide>slides/mongodb/osm-schema4.xml</slide> +<slide>slides/mongodb/osm-schema3.xml</slide> +<slide>slides/mongodb/osm-schema-summary.xml</slide> +<slide>slides/map/finding-food-import-mongo2.xml</slide> +<slide>slides/map/import-script2.xml</slide> + +<slide>slides/map/finding-food-take2.xml</slide> + +<slide>slides/map/mongo-country.xml</slide> + +<slide>slides/mongodb/resources.xml</slide> + +</presentation> diff --git a/slides/map/finding-food-import-mongo2.xml b/slides/map/finding-food-import-mongo2.xml index 4da5bfe..d11783d 100644 --- a/slides/map/finding-food-import-mongo2.xml +++ b/slides/map/finding-food-import-mongo2.xml @@ -4,7 +4,6 @@ <example>{ "_id" : "w77002328", "type" : NumberLong(2), - "address" : "Curzon Street 16 W1J 5HP", "tags" : [ "addr:housenumber=16", "addr:postcode=W1J 5HP", diff --git a/slides/map/import-script1.xml b/slides/map/import-script1.xml index 2398f0e..08c9380 100644 --- a/slides/map/import-script1.xml +++ b/slides/map/import-script1.xml @@ -1,5 +1,5 @@ <slide> -<title>The import script (1)</title> +<title>Importing the Data</title> <list> <bullet>Open file with XML Reader</bullet> diff --git a/slides/map/import-script2.xml b/slides/map/import-script2.xml index 0a2e7a0..b91bd86 100644 --- a/slides/map/import-script2.xml +++ b/slides/map/import-script2.xml @@ -1,5 +1,5 @@ <slide> -<title>The import script (2)</title> +<title>Importing the Data</title> <list> <bullet>Open file with XML Reader</bullet> @@ -15,16 +15,14 @@ </list> </bullet> <bullet>Memory usage: 1.3 MB </bullet> - <bullet>But quite a bit slower</bullet> </list> <example> -"count" : 2253986, -"size" : 213572964, -"avgObjSize" : 94.7534563213791, -"storageSize" : 339603456, -"totalIndexSize" : 354830224, +"count" : 2253986 +"size" : 298385216 +"avgObjSize" : 132.38113102743318 +"totalIndexSize" : 443695168 "indexSizes" : { - "_id_" : 118846336, "loc_2d" : 74156320, "tags_1" : 161827568 -}, + "_id_" : 118846336, "loc_2d" : 163757104, "tags_1" : 161091728 +} </example> </slide> diff --git a/slides/map/mongo-country.xml b/slides/map/mongo-country.xml index 238997f..6651caa 100644 --- a/slides/map/mongo-country.xml +++ b/slides/map/mongo-country.xml @@ -2,7 +2,7 @@ <title>And now the planet?</title> <list> - <bullet>*London*: 2m nodes, 0.75m ways, 0.13GB data, 0.19GB index: <br />fits easily in RAM</bullet> + <bullet>*London*: 2m nodes, 0.75m ways, 0.28G data, 0.42GB index: <br />fits easily in RAM</bullet> <bullet>*UK*: 45m nodes, 10m ways, 5.6GB data, 8.6GB index:<br />fits just in RAM</bullet> <bullet>*Planet*: 1500m nodes, 141m ways…</bullet> </list> diff --git a/slides/mongodb/evening-welcome.xml b/slides/mongodb/evening-welcome.xml new file mode 100644 index 0000000..22c5fbe --- /dev/null +++ b/slides/mongodb/evening-welcome.xml @@ -0,0 +1,14 @@ +<slide type="title"> +<break lines="4"/> +<blurb class="event-title">:-:event:-:</blurb> +<break lines="1"/> +<blurb class="event-presenter"> +Derick Rethans - :-:email:-:<br/> +@:-:twitter:-: +</blurb> +<div class="footer"> +<image align="left" filename="10gen-small.png" pdf-scale="0.4" x-offset="2" y-offset="12.3"/> +<image align="right" filename="mongodb-small.png" pdf-scale="0.4" x-offset="18" y-offset="13.3"/> +</div> +</slide> + diff --git a/slides/mongodb/history-1.8-2.4.xml b/slides/mongodb/history-1.8-2.4.xml new file mode 100644 index 0000000..5404c34 --- /dev/null +++ b/slides/mongodb/history-1.8-2.4.xml @@ -0,0 +1,25 @@ +<slide> +<title>Recent Release History</title> + +<blurb>1.8 — March 2011</blurb> +<list> + <bullet>Journaling</bullet> + <bullet>Sharding and Replica set enhancements</bullet> + <bullet>Spherical geo search</bullet> +</list> + +<blurb>2.0 — Sept 2011</blurb> +<list> + <bullet>Index enhancements to improve size and performance</bullet> + <bullet>Authentication with sharded clusters</bullet> + <bullet>Replica Set enhancements</bullet> +</list> + +<blurb>2.2 — Aug 2012</blurb> +<list> + <bullet>Aggregation Framework</bullet> + <bullet>Multi-Data Center Deployments</bullet> + <bullet>Improved Performance and Concurrency</bullet> +</list> + +</slide> diff --git a/slides/mongodb/history-2.2.xml b/slides/mongodb/history-2.2.xml new file mode 100644 index 0000000..f4ad591 --- /dev/null +++ b/slides/mongodb/history-2.2.xml @@ -0,0 +1,13 @@ +<slide> +<title>2.2 — Release August 2012</title> + +<list> +<bullet>Concurrency: yielding + db level locking</bullet> +<bullet>New aggregation framework</bullet> +<bullet>TTL Collections</bullet> +<bullet>Improved free list implementation</bullet> +<bullet>Tag aware sharding</bullet> +<bullet>Read Preferences</bullet> +<bullet>http://docs.mongodb.org/manual/release-notes/2.2/</bullet> +</list> +</slide> diff --git a/slides/mongodb/ongoing.xml b/slides/mongodb/ongoing.xml new file mode 100644 index 0000000..36c9c6d --- /dev/null +++ b/slides/mongodb/ongoing.xml @@ -0,0 +1,14 @@ +<slide> +<title>Ongoing Work</title> + +<list> +<bullet>Security: finer-level authorization and auditing</bullet> +<bullet>Improved management of sharded clusters + <list> + <bullet>Better sharing of network resources in sharded environments (sockets, connections, etc)</bullet> + </list> +</bullet> +<bullet>Additional features for Text Search</bullet> +<bullet>Collection-level locking</bullet> +</list> +</slide> diff --git a/slides/mongodb/osm-schema-summary.xml b/slides/mongodb/osm-schema-summary.xml new file mode 100644 index 0000000..40949b1 --- /dev/null +++ b/slides/mongodb/osm-schema-summary.xml @@ -0,0 +1,41 @@ +<slide> +<title>Comparing the approaches</title> + +<table> +<tr><th></th><th>simple</th><th>map</th><th>concat</th><th>sub</th></tr> +<tr><td>items</td><td>2253986</td><td>2253986</td><td>2253986</td><td>2253986</td></tr> +<tr><td>storage (MB)</td><td>270</td><td>302</td><td>284</td><td>279</td></tr> +<tr><td>index size (MB)</td><td>569++</td><td>520</td><td>423</td><td>458</td></tr> +<tr><th colspan="5">%name=Strand%</th></tr> +<tr><td>n</td><td>12</td><td>12</td><td>12</td><td>12</td></tr> +<tr><td>nScanObjs</td><td>12</td><td>12</td><td>12</td><td>12</td></tr> +<tr><td>ms</td><td>0</td><td>0</td><td>0</td><td>0</td></tr> +<tr><th colspan="5">%highway=*%</th></tr> +<tr><td>n</td><td>210440</td><td>210440</td><td>210440</td><td>210440</td></tr> +<tr><td>nScanObjs</td><td>2253986</td><td>210440</td><td>210440</td><td>2253986</td></tr> +<tr><td>ms</td><td>1215</td><td>421</td><td>629</td><td>1341</td></tr> +<tr><th colspan="5">%leisure=*%</th></tr> +<tr><td>n</td><td>6609</td><td>6609</td><td>6609</td><td>6609</td></tr> +<tr><td>nScanObjs</td><td>2253986</td><td>6609</td><td>6609</td><td>2253986</td></tr> +<tr><td>ms</td><td>1226</td><td>15</td><td>21</td><td>1326</td></tr> +</table> + +<!-- +db.poi.find( { 'tags.name': "Strand" } ).explain(); +db.poiMap.find( { 'tags' : { $elemMatch: { 'v' : 'Strand', 'k': "name" } } } ).explain(); +db.poiConcat.find( { 'tags': "name=Strand" } ).explain(); +db.poiSub.find( { 'tags': { name: 'Strand' } } ).explain(); + +db.poi.find( { 'tags.highway': { $exists: true } } ).explain(); +db.poiMap.find( { 'tags.k': 'highway' } ).explain(); +db.poiConcat.find( { 'tags': /^highway=/ } ).explain(); +db.poiSub.find( { 'tags.highway' : { '$exists': true } } ).explain(); + +db.poi.find( { 'tags.leisure': { $exists: true } } ).explain(); +db.poiMap.find( { 'tags.k': 'leisure' } ).explain(); +db.poiConcat.find( { 'tags': /^leisure=/ } ).explain(); +db.poiSub.find( { 'tags.leisure' : { '$exists': true } } ).explain(); +--> + + +</slide> diff --git a/slides/mongodb/osm-schema1.xml b/slides/mongodb/osm-schema1.xml index 8254377..239d581 100644 --- a/slides/mongodb/osm-schema1.xml +++ b/slides/mongodb/osm-schema1.xml @@ -2,23 +2,24 @@ <title>Tags as a key/value combination</title> <example>$doc = array( - 'name' => 'A440', 'tags' => [ + 'name' => 'A440', 'highway' => 'secondary', 'oneway' => 'yes' ] ); -$db->poi->ensureIndex( [ 'name' => 1 ] ); +$db->poi->ensureIndex( [ 'tags.name' => 1 ] ); $db->poi->ensureIndex( [ 'tags.highway' => 1 ] ); $db->poi->ensureIndex( [ 'tags.oneway' => 1 ] ); // Road with name=Strand -$db->poi->find( [ 'name' => 'Strand' ] ); +$db->poi->find( [ 'tags.name' => 'Strand' ] ); // All roads $db->poi->find( [ 'tags.highway' => [ '$exists' => 1 ] ] ); </example> <list> <bullet>Lots of indexes are required</bullet> + <bullet>Index can not be used for %highway=*%</bullet> <bullet>Easy to extract data from</bullet> </list> </slide> diff --git a/slides/mongodb/osm-schema3.xml b/slides/mongodb/osm-schema3.xml index f71b391..dbf7cda 100644 --- a/slides/mongodb/osm-schema3.xml +++ b/slides/mongodb/osm-schema3.xml @@ -1,22 +1,21 @@ <slide> -<title>Tags as concatenated strings</title> +<title>Tags as documents</title> <example>$doc = array( 'tags' => [ - 'name=A440', - 'highway=secondary', - 'oneway=yes' + [ 'name' => 'A440' ], + [ 'highway' => 'secondary' ], + [ 'oneway' => 'yes' ], ] ); $db->poi->ensureIndex( [ 'tags' => 1 ] ); // Road with name=Strand -$db->poi->find( [ 'tags' => 'name=Strand' ] ); +$db->poi->find( [ 'tags' => [ 'name' => 'Strand' ] ] ); // All roads -$db->poi->find( [ 'tags' => new MongoRegex( '/^highway=/' ) ] );</example> +$db->poi->find( [ 'tags.highway' => [ '$exists' => true ] ] );</example> <list> - <bullet>One index required</bullet> <bullet>Good for finding key/value combinations</bullet> - <bullet>Good enough for doing the "all roads" question</bullet> + <bullet>Index can not be used for %highway=*%</bullet> </list> </slide> diff --git a/slides/mongodb/osm-schema4.xml b/slides/mongodb/osm-schema4.xml new file mode 100644 index 0000000..f71b391 --- /dev/null +++ b/slides/mongodb/osm-schema4.xml @@ -0,0 +1,22 @@ +<slide> +<title>Tags as concatenated strings</title> + +<example>$doc = array( + 'tags' => [ + 'name=A440', + 'highway=secondary', + 'oneway=yes' + ] +); +$db->poi->ensureIndex( [ 'tags' => 1 ] ); + +// Road with name=Strand +$db->poi->find( [ 'tags' => 'name=Strand' ] ); +// All roads +$db->poi->find( [ 'tags' => new MongoRegex( '/^highway=/' ) ] );</example> +<list> + <bullet>One index required</bullet> + <bullet>Good for finding key/value combinations</bullet> + <bullet>Good enough for doing the "all roads" question</bullet> +</list> +</slide> diff --git a/slides/mongodb/program-yul-evening-after-intro.xml b/slides/mongodb/program-yul-evening-after-intro.xml new file mode 100644 index 0000000..b8a9688 --- /dev/null +++ b/slides/mongodb/program-yul-evening-after-intro.xml @@ -0,0 +1,10 @@ +<slide> +<title>What's on tonight?</title> + +<list> + <bullet>|aaaaaa|19:00-19:15|<br/>|aaaaaa|Welcome and Introduction — Derick Rethans, 10gen|</bullet> + <bullet>*19:15-19:45*<br/>*Store a City, Country or Planet in your Database — Derick Rethans, 10gen*</bullet> + <bullet>20:00-20:30<br/>Using MongoDB at Fictive Kin — Sean Coates; Joël Perras</bullet> + <bullet>20:30-21:00<br/>Networking</bullet> +</list> +</slide> diff --git a/slides/mongodb/program-yul-evening.xml b/slides/mongodb/program-yul-evening.xml new file mode 100644 index 0000000..9f845e8 --- /dev/null +++ b/slides/mongodb/program-yul-evening.xml @@ -0,0 +1,10 @@ +<slide> +<title>What's on tonight?</title> + +<list> + <bullet>19:00-19:15<br/>Welcome and Introduction — Derick Rethans, 10gen</bullet> + <bullet>19:15-19:45<br/>Store a City, Country or Planet in your Database — Derick Rethans, 10gen</bullet> + <bullet>20:00-20:30<br/>Using MongoDB at Fictive Kin — Sean Coates; Joël Perras</bullet> + <bullet>20:30-21:00<br/>Networking</bullet> +</list> +</slide> diff --git a/slides/mongodb/roadmap-2.4.xml b/slides/mongodb/roadmap-2.4.xml new file mode 100644 index 0000000..ccfe15e --- /dev/null +++ b/slides/mongodb/roadmap-2.4.xml @@ -0,0 +1,14 @@ +<slide> +<title>2.4 — Highlights</title> + +<list> + <bullet>Security - SASL, Kerberos, additional privileges</bullet> + <bullet>Hash-based Sharding</bullet> + <bullet>Geospatial Indexing: query intersecting polygons</bullet> + <bullet>Aggregation framework: faster and more features</bullet> + <bullet>V8 JavaScript engine replaces SpiderMonkey</bullet> + <bullet>Replica set flapping reduced, initial sync for replication much faster</bullet> + <bullet>MMS running in your own data center</bullet> + <bullet>Text search (experimental)</bullet> +</list> +</slide> diff --git a/slides/mongodb/what-can-i-do.xml b/slides/mongodb/what-can-i-do.xml new file mode 100644 index 0000000..46b9a68 --- /dev/null +++ b/slides/mongodb/what-can-i-do.xml @@ -0,0 +1,14 @@ +<slide> +<title>What can I do?</title> + +<list> + <bullet>MongoDB is a community driven product + <list> + <bullet>Use the product</bullet> + <bullet>Log feature requests</bullet> + <bullet>Vote for existing features</bullet> + </list> + </bullet> + <bullet>Start a local meetup</bullet> +</list> +</slide> diff --git a/templates/default/th.ezt b/templates/default/th.ezt index d4924a8..36f75e6 100644 --- a/templates/default/th.ezt +++ b/templates/default/th.ezt @@ -1,5 +1,6 @@ {use $node, $pres} -<th> +{var $colspan = get_attribute( $node, 'colspan' )} +<th{if $colspan} colspan='{$colspan}'{/if}> {foreach $node->childNodes as $child} {if is_set( $child->tagName )} {include $child->tagName . '.ezt' send $child as $node, $pres, true as $inline}
diff --git a/mongo-osm-montreal-evening.xml b/mongo-osm-montreal-evening.xml new file mode 100644 index 0000000..58af8c7 --- /dev/null +++ b/mongo-osm-montreal-evening.xml @@ -0,0 +1,67 @@ +<?xml version="1.0" encoding="utf-8"?> +<presentation css="10gen-strict.css"> +<topic>Maps</topic> +<title>Store a city, a country or even a planet in your DB</title> +<event>An Evening with MongoDB, Montreal</event> +<location>Montréal, Canada</location> +<date>February 26th, 2013</date> +<speaker>Derick Rethans</speaker> +<email>derick@10gen.com</email> +<twitter>derickr</twitter> +<joindin></joindin> + +<slide>slides/mongodb/evening-welcome.xml</slide> +<slide>slides/mongodb/program-yul-evening.xml</slide> + +<slide>slides/mongodb/history-1.8-2.4.xml</slide> +<slide>slides/mongodb/history-2.2.xml</slide> +<slide>slides/mongodb/roadmap-2.4.xml</slide> +<slide>slides/mongodb/ongoing.xml</slide> +<slide>slides/mongodb/what-can-i-do.xml</slide> + +<slide>slides/mongodb/program-yul-evening-after-intro.xml</slide> + +<slide>slides/map/title.xml</slide> + +<!-- +In this talk I will be explaining the strong points of OpenStreetMap and why +using GoogleMaps for your websites is generally a bad idea. Contrary to popular +belief, GoogleMaps isn't as amazing as it looks and they are a lot more evil +than they look. OpenStreetMap's data is also easily accessible for use in PHP +applications and the generated tiles can easily be embedded into a Web 2.0 +application. Its open nature is a welcome and powerful geo database that can be +added to and used in whatever way imaginary. +--> + +<!-- +What is X? +--> +<slide>slides/map/osm-what.xml</slide> + +<slide>slides/map/osm-data.xml</slide> + +<slide>slides/map/osm-tags1.xml</slide> +<slide>slides/map/osm-tags2.xml</slide> +<slide>slides/map/osm-tags3.xml</slide> +<slide>slides/map/osm-tags4.xml</slide> + +<slide>slides/map/osm-xapi.xml</slide> +<slide>slides/mongodb/osm-to-mongo-data.xml</slide> +<slide>slides/mongodb/osm-to-mongo-data2.xml</slide> +<slide>slides/mongodb/osm-to-mongo-data3.xml</slide> +<slide>slides/mongodb/osm-to-mongo-data4.xml</slide> +<slide>slides/mongodb/osm-schema1.xml</slide> +<slide>slides/mongodb/osm-schema2.xml</slide> +<slide>slides/mongodb/osm-schema4.xml</slide> +<slide>slides/mongodb/osm-schema3.xml</slide> +<slide>slides/mongodb/osm-schema-summary.xml</slide> +<slide>slides/map/finding-food-import-mongo2.xml</slide> +<slide>slides/map/import-script2.xml</slide> + +<slide>slides/map/finding-food-take2.xml</slide> + +<slide>slides/map/mongo-country.xml</slide> + +<slide>slides/mongodb/resources.xml</slide> + +</presentation> diff --git a/slides/map/finding-food-import-mongo2.xml b/slides/map/finding-food-import-mongo2.xml index 4da5bfe..d11783d 100644 --- a/slides/map/finding-food-import-mongo2.xml +++ b/slides/map/finding-food-import-mongo2.xml @@ -4,7 +4,6 @@ <example>{ "_id" : "w77002328", "type" : NumberLong(2), - "address" : "Curzon Street 16 W1J 5HP", "tags" : [ "addr:housenumber=16", "addr:postcode=W1J 5HP", diff --git a/slides/map/import-script1.xml b/slides/map/import-script1.xml index 2398f0e..08c9380 100644 --- a/slides/map/import-script1.xml +++ b/slides/map/import-script1.xml @@ -1,5 +1,5 @@ <slide> -<title>The import script (1)</title> +<title>Importing the Data</title> <list> <bullet>Open file with XML Reader</bullet> diff --git a/slides/map/import-script2.xml b/slides/map/import-script2.xml index 0a2e7a0..b91bd86 100644 --- a/slides/map/import-script2.xml +++ b/slides/map/import-script2.xml @@ -1,5 +1,5 @@ <slide> -<title>The import script (2)</title> +<title>Importing the Data</title> <list> <bullet>Open file with XML Reader</bullet> @@ -15,16 +15,14 @@ </list> </bullet> <bullet>Memory usage: 1.3 MB </bullet> - <bullet>But quite a bit slower</bullet> </list> <example> -"count" : 2253986, -"size" : 213572964, -"avgObjSize" : 94.7534563213791, -"storageSize" : 339603456, -"totalIndexSize" : 354830224, +"count" : 2253986 +"size" : 298385216 +"avgObjSize" : 132.38113102743318 +"totalIndexSize" : 443695168 "indexSizes" : { - "_id_" : 118846336, "loc_2d" : 74156320, "tags_1" : 161827568 -}, + "_id_" : 118846336, "loc_2d" : 163757104, "tags_1" : 161091728 +} </example> </slide> diff --git a/slides/map/mongo-country.xml b/slides/map/mongo-country.xml index 238997f..6651caa 100644 --- a/slides/map/mongo-country.xml +++ b/slides/map/mongo-country.xml @@ -2,7 +2,7 @@ <title>And now the planet?</title> <list> - <bullet>*London*: 2m nodes, 0.75m ways, 0.13GB data, 0.19GB index: <br />fits easily in RAM</bullet> + <bullet>*London*: 2m nodes, 0.75m ways, 0.28G data, 0.42GB index: <br />fits easily in RAM</bullet> <bullet>*UK*: 45m nodes, 10m ways, 5.6GB data, 8.6GB index:<br />fits just in RAM</bullet> <bullet>*Planet*: 1500m nodes, 141m ways…</bullet> </list> diff --git a/slides/mongodb/evening-welcome.xml b/slides/mongodb/evening-welcome.xml new file mode 100644 index 0000000..22c5fbe --- /dev/null +++ b/slides/mongodb/evening-welcome.xml @@ -0,0 +1,14 @@ +<slide type="title"> +<break lines="4"/> +<blurb class="event-title">:-:event:-:</blurb> +<break lines="1"/> +<blurb class="event-presenter"> +Derick Rethans - :-:email:-:<br/> +@:-:twitter:-: +</blurb> +<div class="footer"> +<image align="left" filename="10gen-small.png" pdf-scale="0.4" x-offset="2" y-offset="12.3"/> +<image align="right" filename="mongodb-small.png" pdf-scale="0.4" x-offset="18" y-offset="13.3"/> +</div> +</slide> + diff --git a/slides/mongodb/history-1.8-2.4.xml b/slides/mongodb/history-1.8-2.4.xml new file mode 100644 index 0000000..5404c34 --- /dev/null +++ b/slides/mongodb/history-1.8-2.4.xml @@ -0,0 +1,25 @@ +<slide> +<title>Recent Release History</title> + +<blurb>1.8 — March 2011</blurb> +<list> + <bullet>Journaling</bullet> + <bullet>Sharding and Replica set enhancements</bullet> + <bullet>Spherical geo search</bullet> +</list> + +<blurb>2.0 — Sept 2011</blurb> +<list> + <bullet>Index enhancements to improve size and performance</bullet> + <bullet>Authentication with sharded clusters</bullet> + <bullet>Replica Set enhancements</bullet> +</list> + +<blurb>2.2 — Aug 2012</blurb> +<list> + <bullet>Aggregation Framework</bullet> + <bullet>Multi-Data Center Deployments</bullet> + <bullet>Improved Performance and Concurrency</bullet> +</list> + +</slide> diff --git a/slides/mongodb/history-2.2.xml b/slides/mongodb/history-2.2.xml new file mode 100644 index 0000000..f4ad591 --- /dev/null +++ b/slides/mongodb/history-2.2.xml @@ -0,0 +1,13 @@ +<slide> +<title>2.2 — Release August 2012</title> + +<list> +<bullet>Concurrency: yielding + db level locking</bullet> +<bullet>New aggregation framework</bullet> +<bullet>TTL Collections</bullet> +<bullet>Improved free list implementation</bullet> +<bullet>Tag aware sharding</bullet> +<bullet>Read Preferences</bullet> +<bullet>http://docs.mongodb.org/manual/release-notes/2.2/</bullet> +</list> +</slide> diff --git a/slides/mongodb/ongoing.xml b/slides/mongodb/ongoing.xml new file mode 100644 index 0000000..36c9c6d --- /dev/null +++ b/slides/mongodb/ongoing.xml @@ -0,0 +1,14 @@ +<slide> +<title>Ongoing Work</title> + +<list> +<bullet>Security: finer-level authorization and auditing</bullet> +<bullet>Improved management of sharded clusters + <list> + <bullet>Better sharing of network resources in sharded environments (sockets, connections, etc)</bullet> + </list> +</bullet> +<bullet>Additional features for Text Search</bullet> +<bullet>Collection-level locking</bullet> +</list> +</slide> diff --git a/slides/mongodb/osm-schema-summary.xml b/slides/mongodb/osm-schema-summary.xml new file mode 100644 index 0000000..40949b1 --- /dev/null +++ b/slides/mongodb/osm-schema-summary.xml @@ -0,0 +1,41 @@ +<slide> +<title>Comparing the approaches</title> + +<table> +<tr><th></th><th>simple</th><th>map</th><th>concat</th><th>sub</th></tr> +<tr><td>items</td><td>2253986</td><td>2253986</td><td>2253986</td><td>2253986</td></tr> +<tr><td>storage (MB)</td><td>270</td><td>302</td><td>284</td><td>279</td></tr> +<tr><td>index size (MB)</td><td>569++</td><td>520</td><td>423</td><td>458</td></tr> +<tr><th colspan="5">%name=Strand%</th></tr> +<tr><td>n</td><td>12</td><td>12</td><td>12</td><td>12</td></tr> +<tr><td>nScanObjs</td><td>12</td><td>12</td><td>12</td><td>12</td></tr> +<tr><td>ms</td><td>0</td><td>0</td><td>0</td><td>0</td></tr> +<tr><th colspan="5">%highway=*%</th></tr> +<tr><td>n</td><td>210440</td><td>210440</td><td>210440</td><td>210440</td></tr> +<tr><td>nScanObjs</td><td>2253986</td><td>210440</td><td>210440</td><td>2253986</td></tr> +<tr><td>ms</td><td>1215</td><td>421</td><td>629</td><td>1341</td></tr> +<tr><th colspan="5">%leisure=*%</th></tr> +<tr><td>n</td><td>6609</td><td>6609</td><td>6609</td><td>6609</td></tr> +<tr><td>nScanObjs</td><td>2253986</td><td>6609</td><td>6609</td><td>2253986</td></tr> +<tr><td>ms</td><td>1226</td><td>15</td><td>21</td><td>1326</td></tr> +</table> + +<!-- +db.poi.find( { 'tags.name': "Strand" } ).explain(); +db.poiMap.find( { 'tags' : { $elemMatch: { 'v' : 'Strand', 'k': "name" } } } ).explain(); +db.poiConcat.find( { 'tags': "name=Strand" } ).explain(); +db.poiSub.find( { 'tags': { name: 'Strand' } } ).explain(); + +db.poi.find( { 'tags.highway': { $exists: true } } ).explain(); +db.poiMap.find( { 'tags.k': 'highway' } ).explain(); +db.poiConcat.find( { 'tags': /^highway=/ } ).explain(); +db.poiSub.find( { 'tags.highway' : { '$exists': true } } ).explain(); + +db.poi.find( { 'tags.leisure': { $exists: true } } ).explain(); +db.poiMap.find( { 'tags.k': 'leisure' } ).explain(); +db.poiConcat.find( { 'tags': /^leisure=/ } ).explain(); +db.poiSub.find( { 'tags.leisure' : { '$exists': true } } ).explain(); +--> + + +</slide> diff --git a/slides/mongodb/osm-schema1.xml b/slides/mongodb/osm-schema1.xml index 8254377..239d581 100644 --- a/slides/mongodb/osm-schema1.xml +++ b/slides/mongodb/osm-schema1.xml @@ -2,23 +2,24 @@ <title>Tags as a key/value combination</title> <example>$doc = array( - 'name' => 'A440', 'tags' => [ + 'name' => 'A440', 'highway' => 'secondary', 'oneway' => 'yes' ] ); -$db->poi->ensureIndex( [ 'name' => 1 ] ); +$db->poi->ensureIndex( [ 'tags.name' => 1 ] ); $db->poi->ensureIndex( [ 'tags.highway' => 1 ] ); $db->poi->ensureIndex( [ 'tags.oneway' => 1 ] ); // Road with name=Strand -$db->poi->find( [ 'name' => 'Strand' ] ); +$db->poi->find( [ 'tags.name' => 'Strand' ] ); // All roads $db->poi->find( [ 'tags.highway' => [ '$exists' => 1 ] ] ); </example> <list> <bullet>Lots of indexes are required</bullet> + <bullet>Index can not be used for %highway=*%</bullet> <bullet>Easy to extract data from</bullet> </list> </slide> diff --git a/slides/mongodb/osm-schema3.xml b/slides/mongodb/osm-schema3.xml index f71b391..dbf7cda 100644 --- a/slides/mongodb/osm-schema3.xml +++ b/slides/mongodb/osm-schema3.xml @@ -1,22 +1,21 @@ <slide> -<title>Tags as concatenated strings</title> +<title>Tags as documents</title> <example>$doc = array( 'tags' => [ - 'name=A440', - 'highway=secondary', - 'oneway=yes' + [ 'name' => 'A440' ], + [ 'highway' => 'secondary' ], + [ 'oneway' => 'yes' ], ] ); $db->poi->ensureIndex( [ 'tags' => 1 ] ); // Road with name=Strand -$db->poi->find( [ 'tags' => 'name=Strand' ] ); +$db->poi->find( [ 'tags' => [ 'name' => 'Strand' ] ] ); // All roads -$db->poi->find( [ 'tags' => new MongoRegex( '/^highway=/' ) ] );</example> +$db->poi->find( [ 'tags.highway' => [ '$exists' => true ] ] );</example> <list> - <bullet>One index required</bullet> <bullet>Good for finding key/value combinations</bullet> - <bullet>Good enough for doing the "all roads" question</bullet> + <bullet>Index can not be used for %highway=*%</bullet> </list> </slide> diff --git a/slides/mongodb/osm-schema4.xml b/slides/mongodb/osm-schema4.xml new file mode 100644 index 0000000..f71b391 --- /dev/null +++ b/slides/mongodb/osm-schema4.xml @@ -0,0 +1,22 @@ +<slide> +<title>Tags as concatenated strings</title> + +<example>$doc = array( + 'tags' => [ + 'name=A440', + 'highway=secondary', + 'oneway=yes' + ] +); +$db->poi->ensureIndex( [ 'tags' => 1 ] ); + +// Road with name=Strand +$db->poi->find( [ 'tags' => 'name=Strand' ] ); +// All roads +$db->poi->find( [ 'tags' => new MongoRegex( '/^highway=/' ) ] );</example> +<list> + <bullet>One index required</bullet> + <bullet>Good for finding key/value combinations</bullet> + <bullet>Good enough for doing the "all roads" question</bullet> +</list> +</slide> diff --git a/slides/mongodb/program-yul-evening-after-intro.xml b/slides/mongodb/program-yul-evening-after-intro.xml new file mode 100644 index 0000000..b8a9688 --- /dev/null +++ b/slides/mongodb/program-yul-evening-after-intro.xml @@ -0,0 +1,10 @@ +<slide> +<title>What's on tonight?</title> + +<list> + <bullet>|aaaaaa|19:00-19:15|<br/>|aaaaaa|Welcome and Introduction — Derick Rethans, 10gen|</bullet> + <bullet>*19:15-19:45*<br/>*Store a City, Country or Planet in your Database — Derick Rethans, 10gen*</bullet> + <bullet>20:00-20:30<br/>Using MongoDB at Fictive Kin — Sean Coates; Joël Perras</bullet> + <bullet>20:30-21:00<br/>Networking</bullet> +</list> +</slide> diff --git a/slides/mongodb/program-yul-evening.xml b/slides/mongodb/program-yul-evening.xml new file mode 100644 index 0000000..9f845e8 --- /dev/null +++ b/slides/mongodb/program-yul-evening.xml @@ -0,0 +1,10 @@ +<slide> +<title>What's on tonight?</title> + +<list> + <bullet>19:00-19:15<br/>Welcome and Introduction — Derick Rethans, 10gen</bullet> + <bullet>19:15-19:45<br/>Store a City, Country or Planet in your Database — Derick Rethans, 10gen</bullet> + <bullet>20:00-20:30<br/>Using MongoDB at Fictive Kin — Sean Coates; Joël Perras</bullet> + <bullet>20:30-21:00<br/>Networking</bullet> +</list> +</slide> diff --git a/slides/mongodb/roadmap-2.4.xml b/slides/mongodb/roadmap-2.4.xml new file mode 100644 index 0000000..ccfe15e --- /dev/null +++ b/slides/mongodb/roadmap-2.4.xml @@ -0,0 +1,14 @@ +<slide> +<title>2.4 — Highlights</title> + +<list> + <bullet>Security - SASL, Kerberos, additional privileges</bullet> + <bullet>Hash-based Sharding</bullet> + <bullet>Geospatial Indexing: query intersecting polygons</bullet> + <bullet>Aggregation framework: faster and more features</bullet> + <bullet>V8 JavaScript engine replaces SpiderMonkey</bullet> + <bullet>Replica set flapping reduced, initial sync for replication much faster</bullet> + <bullet>MMS running in your own data center</bullet> + <bullet>Text search (experimental)</bullet> +</list> +</slide> diff --git a/slides/mongodb/what-can-i-do.xml b/slides/mongodb/what-can-i-do.xml new file mode 100644 index 0000000..46b9a68 --- /dev/null +++ b/slides/mongodb/what-can-i-do.xml @@ -0,0 +1,14 @@ +<slide> +<title>What can I do?</title> + +<list> + <bullet>MongoDB is a community driven product + <list> + <bullet>Use the product</bullet> + <bullet>Log feature requests</bullet> + <bullet>Vote for existing features</bullet> + </list> + </bullet> + <bullet>Start a local meetup</bullet> +</list> +</slide> diff --git a/templates/default/th.ezt b/templates/default/th.ezt index d4924a8..36f75e6 100644 --- a/templates/default/th.ezt +++ b/templates/default/th.ezt @@ -1,5 +1,6 @@ {use $node, $pres} -<th> +{var $colspan = get_attribute( $node, 'colspan' )} +<th{if $colspan} colspan='{$colspan}'{/if}> {foreach $node->childNodes as $child} {if is_set( $child->tagName )} {include $child->tagName . '.ezt' send $child as $node, $pres, true as $inline}