Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Mongoid Collection Snapshot - Great for MapReduce

DZone's Guide to

Mongoid Collection Snapshot - Great for MapReduce

· Database Zone ·
Free Resource

Compliant Database DevOps and the role of DevSecOps DevOps is becoming the new normal in application development, and DevSecOps is now entering the picture. By balancing the desire to release code faster with the need for the same code to be secure, it addresses increasing demands for data privacy. But what about the database? How can databases be included in both DevOps and DevSecOps? What additional measures should be considered to achieve truly compliant database DevOps? This whitepaper provides a valuable insight. Get the whitepaper

Another fine open-source contribution from @aaw, mongoid_collection_snapshot: easy maintenance of collections of processed data in MongoDB with the Mongoid ODM.

 

https://github.com/aaw/mongoid_collection_snapshot


This turned out to be extremely useful in many map-reduce scenarios where we do lengthy computations that output data that is used as a complete and consistent set. For example, calculating average prices across ranges of items (the example in the documentation). Another good use can be for tags stored as arrays of strings – you want to know how many items are tagged with a given entry. We can now take my incremental tag count map-reduce and replace it with a much more trivial implementation that uses this gem.

Compliant Database DevOps and the role of DevSecOps DevOps is becoming the new normal in application development, and DevSecOps is now entering the picture. By balancing the desire to release code faster with the need for the same code to be secure, it addresses increasing demands for data privacy. But what about the database? How can databases be included in both DevOps and DevSecOps? What additional measures should be considered to achieve truly compliant database DevOps? This whitepaper provides a valuable insight. Get the whitepaper

Topics:

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}