node
node copied to clipboard
DB Indexes
We need to create proper mongodb indexes.
Off of the top of my head:
- work.id
- work.publicKey
- blockchainReader.blockHeight
Assigning this to @WesleyCharlesBlake. Please sync with Lautaro if you need any input on this one.
We should add this index
db = db.getSiblingDB("poet")
db.getCollection("blockchainReader").createIndex({
"blockHeight": -1
}, {background: true})