Quantcast
Channel: My Pragmatic life -- a blog by Michael Grosser » MongoDB
Browsing all 3 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Maximum and minimum for MongoMapper

A small hack to get minimum/maximum functionality on MongoMapper, its not 100% secure(can be wrong when inserting twice at the same time etc), but good enought for our usecase Usage...

View Article



Image may be NSFW.
Clik here to view.

Adding chainable scopes and named scopes to MongoMapper

With Scopify chainable scopes and named scopes can be added to any model, for example MongoMapper: MongoMapper::Document::ClassMethods.send(:include, Scopify::ClassMethods)...

View Article

Image may be NSFW.
Clik here to view.

Installing MongoDb on Ubuntu Hardy from source with init.d and data dir

After setting up mongo by hand for 2 servers that are not deployed via puppet, here is a bash script to do it… sudo su root cd /opt/ && /usr/bin/curl -OL...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images