sj:mug Holiday Mongo Talks

MongoDB @ HP in Mt Laurel, NJ

 

 

My local demo is hitting a MongoDB instance at MongoLab, the provide free hosting for a small dataset.

 

I have a simple application based on Spring Data for Mongodb.

 

MongoOperations mongoOps = null;
 AppConfig config = new AppConfig();
 try {
 mongoOps = config.mongoTemplate();
 } catch (Exception e) {
 e.printStackTrace();
 logger.error("Mongo Connection Error", e);
 }

 Person person = mongoOps.findOne(new Query(where("name").is("Joe")), Person.class);
 logger.info(person.toString());

 model.addAttribute("MongoInfo", person.toString());

 

august 2012 – 2.2
aggregation framework
improved concurrency
mongo is great for email storage / documents
aggregation  – unix style piping
TTL (time to live)
garbage collect data
unwind an array

 

 

Leave a Reply