NoSQL Zone is brought to you in partnership with:

I have been a programmer since I was a young child in the Gifted and Talent Program in Rutherford, NJ back in 1979. I started programming on Commodore PETs – 4 bit. And then Apple IIs, Commodore 64s and some others. Basic, then Pascal, Fortran, C, C++, Java, JavaScript and more. I am a Senior Field Engineer with Pivotal. Tim is a DZone MVB and is not an employee of DZone and has posted 58 posts at DZone. You can read more from them at their website. View Full User Profile

sj:mug Holiday Mongo Talks

12.13.2012
| 1102 views |
  • submit to reddit

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
http://docs.mongodb.org/manual/reference/aggregation/


Published at DZone with permission of Tim Spann, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)