1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| use EOS db.action_traces.createIndex({"act.account": 1, "_id":1},{background: true, sparse: true}) db.action_traces.createIndex({"act.name": 1, "_id":1},{background: true, sparse: true}) db.action_traces.createIndex({"act.data.receiver": 1, "_id":1},{background: true, sparse: true}) db.action_traces.createIndex({"act.data.from": 1, "_id":1},{background: true, sparse: true}) db.action_traces.createIndex({"act.data.to": 1, "_id":1},{background: true, sparse: true}) db.action_traces.createIndex({"act.data.name": 1, "_id":1},{background: true, sparse: true}) db.action_traces.createIndex({"act.data.voter": 1, "_id":1},{background: true, sparse: true}) db.action_traces.createIndex({"act.authorization.actor": 1, "_id":1},{background: true, sparse: true}) db.action_traces.createIndex({"receipt.receiver": 1, "_id":1},{background: true, sparse: true})
db.action_traces.createIndex({"block_num": 1, "_id":1},{background: true}) db.action_traces.createIndex({"block_time": 1, "_id":1},{background: true})
db.transaction_traces.createIndex({"id": 1, "_id":1},{background: true})
sh.enableSharding("EOS") sh.shardCollection("EOS.action_traces", {"_id" : 1}, true) sh.shardCollection("EOS.transaction_traces", {"_id" : 1}, true)
|