MongoDB

This is really impressing! They created a full application with several entites on MongoDb, and deployed it to Cloud Foundry. In less than 50 lines of Roo commands from an empty dir to the application deployed on CloudFoundry.com. Actually, in less than 40 lines, if you don't count comments and empty lines :) I don't think even Jango would allow the same with less than 40 lines of script and code combined.

 

blog.springsource.com/2011/09/14/new-application-layering-and-persistence-choices-in-spring-roo/

andrew 25/09/2011 - 13:16

One more .Net driver  for connecting to MongoDB - NoRM - open-source library managed on GitHub.

Speciality of this project in linkage of .Net types and document model of MongoDB.

With NoRM very easy to manipulate with .Net type without necessity to copy them to/from documents for saving/resolving in/from DB like  MongoDB-CSharp Driver.

 

NoRM Home http://wiki.github.com/atheken/NoRM/

Sample

 

    var coll = (new Mongo(connString)).GetCollection<Product>();

    //create a new object to be added to the collection
    var obj = new Product();
    obj._id = ObjectId.NewObjectID();
    obj.Title = "Shoes";

    //save the object
    coll.Insert(obj);

    //find the object
    var obj2 = coll.FindOne(new { _id = obj._id}).First();

 

michael 16/05/2010 - 12:32

Nice example of using Dynamic in manipulation with  MongoDB-CSharp document

 

Instead

Document post = new Document(); 
post["Published"] = DateTime.UtcNow; 
DateTime published = ((DateTime)mongo_post["Published"]).ToLocalTime();

 

With Dynamic

dynamic post = new Document(); 
post.Published = DateTime.UtcNow; 
DateTime published = mongo_post.Published.ToLocalTime();

 

Dynamic document implementation http://www.box.net/shared/knqqd9jn9k

 

michael 14/04/2010 - 10:20

 

Modern projects need to manipulate with huge data amount, as result the necessity of high scalability and  high performance is very actual and always grows.

RDBMS databases cannot supply ultimate solution and alternative concepts like in NoSQL systems look very interesting.

 

The first interesting option is key-value stores like Google Big Table or Cassandra that provide fast and extremely large-scale solution but you can forget the comfort work with SQL queries like in RDBMS databases.  

 

Another option that tries to combine between advantages of RDBMS databases and key-values stores  is document-oriented databases like MonogDB.

 

MongoDB is development by commercial company as open-source project written in C++.

There are a lot of documentation, tutorials and samples on project site. 

 

michael 18/02/2010 - 17:15
Syndicate content