Image Image Image Image Image
Scroll to Top

To Top

MongoDB

30

Aug
2012

inNoSQL

vonJohannes Hoppe

NoSQL Bootcamp – Fazit

On 30, Aug 2012 | inNoSQL | vonJohannes Hoppe

Fazit: Ein aufmerksame Teilnehmer und ausgiebig NoSQL. Mir hat der Tag sehr viel Spaß gemacht!
Wie versprochen sind hier die Folien (alles in einem Set) sowie die Übungsdaten und die Lösungen zu den Aufgaben.


Hier sind die Trainingsdaten zu den Aufgaben auf Slide 90 und 92. Folgende Queries sind eine von mehreren Lösungen:

// 1. Find all scores less than 65. 
use training
db.scores.find( { score: { $lt: 65 }} );
 
// 2. Find the lowest quiz score. Find the highest quiz score. 
use training
db.scores.find({}).sort({score: -1}).limit(1);
db.scores.find({}).sort({score: 1}).limit(1);
 
// 3. Write a query to find all digg stories where the view count is greater than 1000. 
use digg
db.stories.find({ "shorturl.view_count" : { $gt : 1000 }}).count();
db.stories.find({ "shorturl.view_count" : { $gt : 1000 }});
 
// 4. Query for all digg stories whose media type is either 'news' or 'images' and where the topic name is 'Comedy’.
use digg
db.stories.find({'topic.name' : 'Comedy', media: { $in : ['news', 'images']}}).count();
db.stories.find({'topic.name' : 'Comedy', media: { $in : ['news', 'images']}});
 
// 5. Find all digg stories where the topic name is 'Television' or the media type is 'videos'. Skip the first 5 results, and limit the result set to 10.
db.stories.find({$or : [ {'topic.name' : 'Television' } , { media: 'videos' } ] }).skip(5).limit(10);
 
// 1.  Set the proper 'grade' a
db.scores.update({'score': {"$gte": 90}}, {'$set': {grade: "A"}}, false, true);
db.scores.update({'score': {"$gte": 80, $lte: 90}}, {'$set': {grade: "B"}}, false, true);
 
// 2.  You're being nice
db.scores.update(
	{'score': {"$lte": 60}, 'name' : 'exam'}, 
	{'$inc': {score: 10}},
	false, true);

Tags | , ,

16

Aug
2012

inNoSQL

vonJohannes Hoppe

Introducing Mongo2Go

On 16, Aug 2012 | inNoSQL | vonJohannes Hoppe

Mongo2Go is a manged wrapper around the latest MongoDB binaries. It targets .NET 3.5. and should work in later versions, too.
Currently the Nuget package contains the executables of mongodmongoimport and mongoexport v2.2.0-rc1 (32bit).

Mongo2Go has two use cases:

  1. Providing multiple, temporary and isolated MongoDB databases for unit tests (or to be precise: integration tests)
  2. Providing a quick to set up MongoDB database for a local developer environment

Tags | ,

05

Aug
2012

inNoSQL

vonJohannes Hoppe

NoSQL Bootcamp – ICH WILL DEINEN ARSCH IN WOLFSBURG SEHEN!

On 05, Aug 2012 | inNoSQL | vonJohannes Hoppe

 

Die DNUG Braunschweig und ich veranstalten ein Bootcamp zum Thema NoSQL. Und du bist dabei!

Datum: 29.08.2012 / 0-100
Ort: Operational Services GmbH & Co. KG, T-Systems-Gebäude, Alessandro-Volta-Str. 11, 38440 Wolfsburg 

Beschreibung:
Eine große Anzahl an neuartigen Datenbank-Systemen drängt auf den Markt. Lerne jetzt das Rüstzeug kennen, um mit .NET erfolgreich hochskalierende Lösungen für die Cloud zu entwickeln.
Das Bootcamp führt in die Theorie ein und stellt die NoSQL-Datenbanksysteme Redis, RavenDB und MongoDB vor. Im Fokus steht die Open-Source Datenbank MongoDB. Der Workshop beinhaltet Übungsaufgaben und ein umfassendes ASP.NET MVC Beispielprojekt, welche allen Teilnehmern zur Verfügung gestellt wird.

Agenda 

1,5h – Vortrag: Einführung NoSQL mit Redis, MongoDB und RavenDB
2,5h – MongoDB Übungsaufgaben mit der JavaScript-Shell und .NET/C#
2h – Vortrag mit Diskussion & Übungsaufgaben: Schemadesign
1h – MongoDB auf Azure, Ausblick Hadoop auf Azure

Voraussetzungen
Laptop mit Visual Studio 2010 (Express)
Grundkenntnisse in .NET und ASP.NET MVC

Veranstaltungsort:
Operational Services GmbH & Co. KG

T-Systems-Gebäude
Alessandro-Volta-Str. 11
38440 Wolfsburg

Anmeldung:
Die Anmeldung erfolgt in dem du einfach eine E-Mail an [email protected] schickst.
Es gibt 25 Plätze. Das Bootcamp ist kostenlos.

Tags | , ,

10

Mai
2012

inNoSQL

vonJohannes Hoppe

NoSQL bei der .NET Developer Conference (DDC) – Slides & Download

On 10, Mai 2012 | inNoSQL | vonJohannes Hoppe

1: Vortrag: NoSQL in .NET – mit Redis und MongoDB
Der Vortrag führt in die Theorie ein, stellt die beiden NoSQL-Datenbanksysteme Redis und MongoDB näher vor und gibt Praxisbeispiele. Ich präsentiere die beiden Systeme live an einem ASP.NET MVC Beispielprojekt, welches allen Teilnehmern zur Verfügung gestellt wird.

2. Vortrag: NoSQL – Dokumente und Relationen
Eine dokumentenbasierte NoSQL-Datenbank wie MongoDB hat nicht nur eine andere API zur Abfrage der Daten. Die tiefergehende Neuerung ist eine grundlegende andere Art die Daten abzuspeichern. Der Vortrag konzentriert sich auf Schema-Design und bekannten Patterns für Dokumenten-basierte Datenbanken.


 

Tags | , , ,

19

Mrz
2012

inNode.js
NoSQL

vonJohannes Hoppe

Getting started with Node.js and MongoDB on MS Azure – Slides and VIDEO

On 19, Mrz 2012 | inNode.js, NoSQL | vonJohannes Hoppe

Johannes at MongoDB Berlin 2012

It was a  great pleasure to attend the MongoDB workshops and to speak at the conference about Node.js and MongoDB on MS Azure. Here are my slides and the recorded Video:


Tags | , , ,

19

Mrz
2012

inNode.js
NoSQL

vonJohannes Hoppe

Introducing SolarTournament

On 19, Mrz 2012 | inNode.js, NoSQL | vonJohannes Hoppe

For my latest talk I have prepared a node.js demo project, called „SolarTournament“. It demonstrates a bunch of technologies.
But first of all: Let’s have some fun and enter the live multiplayer tournament!

Don’t get confused: At the moment you can’t destroy other players spaceships, only asteroids. It’s simply not implemented. Or in other words: Nobody gets harmed! ;-)

Screenshot

This is demo code

The game is based on Node.js and uses the express web development framework, the Jade template engine, the Stylus CSS engine, Socket.IO for WebSocket communication and last but not least MongoDB – for storing the highscore. (this feature is not online at the moment)

Tags | , , ,

23

Jan
2012

inGeneral

vonJohannes Hoppe

Vorträge und Termine 2012

On 23, Jan 2012 | inGeneral | vonJohannes Hoppe

Johannes Hoppe NoSQL Tie

Meet the guy with the great tie!

Dieses Jahr werde ich auf Konferenzen und User-Groups zu folgenden Themen sprechen:

Ich freue mich, euch dort kennen zu lernen!

 

Tags | , , , , ,

DMDW Extra Lesson – NoSQL and MongoDB

On 06, Mai 2011 | inDMDW lecture, NoSQL | vonJohannes Hoppe

This Friday I introduced you (== my students) to the wonderful new world of databases that are “not only SQL“ (NoSQL). Later on we played with the MongoDB shell and created, read, updated and deleted some documents.

For the MongoDB workshop we used some training data that you can find here. Please don’t forget to solve the exercises! You can contact me by blog-comment or mail, in case of further questions!


 

Tags | ,

MongoDB – Training Data

On 15, Apr 2011 | inDMDW lecture, NoSQL | vonJohannes Hoppe

My favourite next topic will be a short excursion to MongoDB. MongoDB (from „humongous“) is a scalable, high-performance, open source, document-oriented database. It has no SQL, JSON-style documents and is fast as hell! :evil:

Please install MongoDB as described here: Quickstart Windows
And please download these files with sample data: dba-training-data.zip

These MongoDB Quick Reference Cards can be very helpfull:




Update:
Here are the slides for of NoSQL presentation and the MongoDB workshop!

Tags | ,