How Can You Update Your Mongoid Embedded Documents?

I faced a situation in my project where I need to update all the embedded documents. But as we generally know about the mongoid embedded documents we can’t access directly, we must access them through parent documents. I have millions of such parent documents and they embed many child documents. So in the general solution, … Continue reading How Can You Update Your Mongoid Embedded Documents?

Building A Simple Go Web App Using MongoDB on MongoHQ & Heroku

Go is an extremely clean and fun language to work with and has a bunch of handy, modular, well documented packages out of the box. We can easily build a small web app using pure Go for handler functions, the net/http library for routing and serving and mgo as a MongoDB driver. The simple Go … Continue reading Building A Simple Go Web App Using MongoDB on MongoHQ & Heroku

MongoDB text indexing in action

Recently, I had a good use-case to use MongoDB text-indexing and I gave it a shot. I found it to be pretty awesome - even though its not have full-fledged text-search engine capabilities (like facets etc.) it does the job for simple text searches. So, what did we want to do? We had the following … Continue reading MongoDB text indexing in action