Index ¦ Archives ¦ Atom > Tag: mongodb ¦ Atom

My attempts at MapReduce using MongoDB

I was sorting a tree in my (python) webapp instead of having the database to do it for me. This is how I moved it back to the database by using a MapReduce job. I had a collection structured like the following:

{
  "_id" : ...,
  "feed_oid" : "4fd268d2ab87b2d8927d7eee",
  "title" : "blah blah",
  "updated" : 1339702524,
  "watchers" : [ "4fd276fc66224c1ee8000006" ]
}

Such a collection is called articles and in there I get a document for every article published by an rss feed. feed_oid is …


Flask, jQuery Mobile and MongoDB on OpenShift

I've published a demo webapp for mobiles written using Flask and jQuery Mobile. The backend storage is MongoDB. The app allows you to check and edit a shopping lists from your mobile phone so that if your fellow file the list from home, you'll have it at your finger tips later, when at the mall!

This has been deployed on OpenShift which offers MongoDB instances for free, as well as support for any Python WSGI …

© Giulio Fidente. Built using Pelican. Theme by Giulio Fidente on github. Member of the Internet Defense League.