Josh Software

mongoid

josh technology group

Updating Embedded Documents in Mongoid – Josh Software

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, …

Updating Embedded Documents in Mongoid – Josh Software Read More »

mongodb devops

Mongoid and the MongoDB Aggregation Framework – Josh Software

Mongoid and the MongoDB Aggregation Framework – Josh Software MongoDB introduced the aggregation framework since Version 2.2 but the power of the aggregation framework has only been tapped in Mongoid only since 3.1.0. Even today in the latest version (currently v4.0.0), the aggregation framework is used only for some basic functionality – :sum, :count, :avg, …

Mongoid and the MongoDB Aggregation Framework – Josh Software Read More »

josh ruby

MongoDB text indexing in action – Josh Software

MongoDB text indexing in action – Josh Software 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 …

MongoDB text indexing in action – Josh Software Read More »

josh ruby

Amazon EC2 and MongoDB configuration for great performance – Josh Software

Amazon EC2 and MongoDB configuration for great performance – Josh Software Sometimes, we prefer using Amazon EC2 directly for our Rails stack. No offense  to Heroku but we need a more controlled environment; and no offense to EngineYard as they don’t support MongoDB on their environment as yet. We were faced with several problems that …

Amazon EC2 and MongoDB configuration for great performance – Josh Software Read More »