Wednesday, March 31, 2010

Support for mongoDB started

I think NoSQL datastores are a very interesting complement to relational databases. I think mongoDB is a good choice for the rich persistent domain models that are typical for a Sculptor application. Today's article at InfoQ about mongoDB mention the relation between document stores and DDD.

We have started prototyping and it looks promising. The idea is that that Sculptor will provide:
  • Access objects (implementation of repository operations) that interact with mongoDB.
  • Good query support (e.g. findByCondition).
  • Automatic mapping between domain objects and mongoDB documents (DBObject) will be generated.
  • Different types of association will be supported. Aggregates are typically embedded documents and other associations are stored as id references. Maybe we will provide a mechanism to lazy load associated documents.


  1. Hi Patrik,
    what do you expect as advantage of using mongoDB or any other NoSQL database (speed, some property support, easier version transition, ...)?
    Biggest advantage of NoSQL database is no structural objects however with Sculptor interface you are still tight to object structures. Will you support something like searchable HashMap storage (this will be cool)? I'm not fun of NoSQL because I don't see advantage or value which it brings. No offence just interest.

  2. Is Bag datatype supported in MongoDB?.I am using Sculptor tool to generate the code.