Mongo DB (document based databases)

I am interested in getting mongodb to work with yii as well. Im in the process of currently trying to redo the current blog tutorial for using mongodb. There are 2 other places that you guys might want to take note of. First there is already an extension called ‘mongorecord’

http://www.yiiframework.com/extension/mongorecord/

On github, someone also wrote their own Mongo Active Record project called ActiveMongo

https://github.com/crodas/ActiveMongo

both of these projects may help on getting mongo working with yii. I am still new to yii as well as mongo. I am currently trying to see what i can do with the two. Has anyone managed to get mongo working in so far? My biggest issue i need to figure out now, is where to save the database details. Normally they are in config/main.php but what would the needed syntax be for mongo? Beyond that, basic mongo syntax with php i understand (for the most part). Just wondering what you guys have been able to accomplish so far.

I’ve implemented full featured MongoDB implementation similar to AR, i use it now, but still may have some bugs, checkout http://www.yiiframework.com/extension/yiimongodbsiute :)

cheers,

canni

This is great. Ill take a look. Maybe the two extensions could work together to come up with one unified extension. As they will have the same purpose and end result it seems logical rather than having two extensions doing the same thing. Better to put two good minds onto one project. Possibly get one single, better extension and get bugs fixed. Just food for thought.

I totally agree. Try to unify the projects and if it gets really good maybe Qiang consider putting this in to the core of Yii. Sooner or later Yii will need a NoSQL solution to keep up with the other frameworks out there.

recently , it seems that nosql is more and more popular ; so for large project ,architects may consider use both rational storage tech and nosql database together :)

I’d say that it’s the right approach, because data in the project can easilly represent both models - relational and non-relational. Combining the two in right way is what we all try to acheeve.