#830 MongoDB

swt62 Thu 19 Nov 2009

Hi, In researching our possible use of MongoDB (Document Oriented Database) I have been frustrated that as a c# programmer the driver for c# ->> MongoDB is not quite there yet!

I was amazed to see that your language (The Homer Simpson example) has a serialized structure identical to the schemaless documents stored in Mongo. Has anyone tried using Fantom with MongoDB - They look a perfect match!

BTW I'm not sure if I could exist with-out an IDE :-(

Best Regards

Steve Thornton Thornton Software UK [email protected]

brian Fri 20 Nov 2009

I think all the document oriented databases which are using JSON would probably work pretty awesome with Fantom. I know some people have done a little hacking for Fantom clients to some of these new types of databases. Note sure about MongoDB though. We are actually building a document oriented database with Fantom for our commercial venture SkyFoundry. Fantom has been a great language for that project - its as fast as Java, much more productive, and immutability+actors is proving to be a great way to tackle concurrency.

If you or anyone else does build a MongoDB client, let us know.

swt62 Fri 20 Nov 2009

Thanks for the reply Brian, We are particularly interested in MongoDB because it's storage is BSON which is a binary form of JSON which matches our document (doc, pdf, xls) storage requirements. The driver for Fantom should be even easier to do than say c#. I only discovered Fantom tonight (Complete virgin!) but I would love to contribute with regard to the database functionality.

Steve

ivan Fri 20 Nov 2009

Btw the small problem with doc-oriented databases is limitation of custom deserialization of const objects, right now it's tricky or even impossible to read const objects from json (ticket #797)

swt62 Fri 20 Nov 2009

Hi, yes we're not sure how to manage the deserialized objects, we use WPF/c# so we use a lot of binding of our DataSets to controls or ItemTemplates. bolting these things together is like mapping a square peg to a round hole! This is what looks attractive about Fantom, the mapping looks more dynamic. But I'm still struggling with how we would CRUD the Key:Values against controls.

Regards

brian Sat 21 Nov 2009

Btw the small problem with doc-oriented databases is limitation of custom deserialization of const objects, right now it's tricky or even impossible to read const objects from json (ticket #797)

I almost pushed a fix into the last build for this, but then thought this was something we need to discuss a bit more. I will post my ideas under ticket #797

Login or Signup to reply.