Yatendra Khandelwal

  • Random
  • Archive
  • RSS
  • Ask me anything

MongoDB @ KhojKhabar

(Migrated from old wordpress blog post dated 7/12/2011)

These days NoSQL databases are getting very popular. These databases don’t have a SQL interface for querying data and a lot of times don’t store data as collections of rows and tables. MongoDB is one such database that stores data in form of BSON(a form of JSON) documents and collections. The data in MongoDB can be queried using a REST API. It has a .Net driver available and there are a couple of hosted MongoDB cloud hosted providers with a free plan so I thought I will try to convert KhojKhabar data store from SQLite to MongoDB.

Out of MongoHQ and MongoLab I decided to use MongoLab as it allows 240 MB (vs 16 MB by MongoHQ). MongoLab also provides an option to host your MongoDB instance on Amazon or Rackspace cloud. So if your app is hosted on one of these providers you can reduce latency by hosting MongoDB on the same provider. Moving data storage of khojkhabar to MongoDB was not that difficult as the driver usage is like a combination of dataset style programming and fluid function calls (like used in subsonic 2), so someone with experience these can pick it up easily. There is also a good tutorial available at MongoDb.org, which was very helpful. Now the live khojkhabar site is using MongoLab as the data store.In khojkhabar right now I store the news data of last 10 days only so I think 240 MB storage quota should be fine for now.

    • #khojkhabar
    • #mongodb
    • #mongolab
  • 4 months ago
  • 11
  • Comments
  • Permalink
  • Share
    Tweet

11 Notes/ Hide

  1. multipleto89 liked this
  2. bonham690 liked this
  3. yatendra1 posted this

Recent comments

Blog comments powered by Disqus
← Previous • Next →

About

.... technology, business, technology in business, business in technology and more ....
  • Projects

Me, Elsewhere

  • @yatendra on Twitter
  • Linkedin Profile
  • yatendra on github

Twitter

loading tweets…

  • RSS
  • Random
  • Archive
  • Ask me anything
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr