Tag-aware Sharding commands

use dbversity db.nosql.ensureIndex({“mongodb” : 1}) db.rbdms.ensureIndex({“oracle” : 1}) db.newsql.ensureIndex({“memsql” : 1}) sh.enableSharding(“dbversity”) use admin db.runCommand({shardCollection: “dbversity.nosql”, key : {“mongodb”:1}}) db.runCommand({shardCollection: “dbversity.rbdms”, key : {“oracle”:1}}) db.runCommand({shardCollection: “dbversity.newsql”, key : {“memsql”:1}}) sh.startBalancer() sh.isBalancerRunning() sh.getBalancerState() for (var i=0; i

The Software Engineer’s Online Handbook

Toptal has compiled the best free online resources for engineers in 2016. Engineers of all experience levels will find great tools for collaboration, open source projects, and free tutorials. Stay a step ahead with emerging industry trends and hiring forecasts,…