Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

sj:mug Holiday Mongo Talks

DZone's Guide to

sj:mug Holiday Mongo Talks

· Database Zone
Free Resource

Download the Guide to Open Source Database Selection: MySQL vs. MariaDB and see how the side-by-side comparison of must-have features will ease the journey. Brought to you in partnership with MariaDB.

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

Interested in reducing database costs by moving from Oracle Enterprise to open source subscription?  Read the total cost of ownership (TCO) analysis. Brought to you in partnership with MariaDB.

Topics:

Published at DZone with permission of Tim Spann, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}