/* * MongoDB fragmentation estimator, this is only a guide / example. * THIS SCRIPT IS NOT FOR PRODUCTION USE, IT IS FOR DEMONSTRATION PURPOSES ONLY * To execute on a locally running mongod on default port (27017), run: * mongo getMongoFragmentation.js…

Run the balancer at low traffic times mongos> db.settings.update({_id: “balancer”}, {$set : { activeWindow: { start: “9:00”, stop: “21:00”}}}) mongos> mongos> mongos> db.settings.find() { “_id” : “chunksize”, “value” : 64 } { “_id” : “balancer”, “activeWindow” : {…
Commands : use dbversity sh.status() sh.enableSharding(“dbversity”) db.nosql.ensureIndex({“mongodb” : 1}) db.rdbms.ensureIndex({“oracle” : 1}) db.newsql.ensureIndex({“memsql” : 1}) show collections sh.status() sh.shardCollection(“dbversity.nosql”, {mongodb:1}); sh.shardCollection(“dbversity.rdbms”, {oracle:1}); sh.shardCollection(“dbversity.newsql”, {memsql:1}); sh.status() for (var i=0; i<100000; i++) { db[“nosql”].insert({mongodb: Math.random(), count: i, time: new Date()}); } for…
Know your data with seamless schema visualization MongoDB Compass analyzes your documents and displays rich structures within your collections in a simple and intuitive GUI. It allows you to quickly visualize and explore your schema to understand the frequency, types…
Question : How can I update a field with another field value in the same document (in both array & embedded sub documents) From the attached JSON document, I would like to update ‘analyticUsers.geid’ to : ‘analyticUsers._id’ & tried all…
Ember Data (a.k.a ember-data or ember.data) is a library for robustly managing model data in Ember.js applications. The developers of Ember Data state that it is designed to be agnostic to the underlying persistence mechanism, so it works just as…
Currently MongoDB Inc., is lacking in a comprehensive explanation of the issues that can arise with WT when running on EXT4. Specifically, details on what the issue is, under what conditions it can manifest, and what the symptoms are. They’ve…
Source: Toptal One of the most amazing things about working in software development is the ability to work in many different industries – especially if you’re a consultant. Most software development skills you learn while working within one industry are directly transferable…
What Are Microservices? Microservices are one of the latest trends in software design where multiple independent services communicate among themselves and have their own processes and resources. This approach differs from a typical client-server application design. The usual client-server application…
One of the most exciting events in 2015 in the PHP world was the release of PHP 7, 10 years on from the release of the last major version, PHP 5. With a major step forward, PHP 7 introduces plenty…