node icon indicating copy to clipboard operation
node copied to clipboard

DB Indexes

Open lautarodragan opened this issue 7 years ago • 2 comments

We need to create proper mongodb indexes.

Off of the top of my head:

  • work.id
  • work.publicKey
  • blockchainReader.blockHeight

lautarodragan avatar Nov 28 '17 23:11 lautarodragan

Assigning this to @WesleyCharlesBlake. Please sync with Lautaro if you need any input on this one.

geoffturk avatar Aug 07 '18 09:08 geoffturk

We should add this index

db = db.getSiblingDB("poet") 
db.getCollection("blockchainReader").createIndex({ 
    "blockHeight": -1
}, {background: true})

WesleyCharlesBlake avatar Sep 17 '18 14:09 WesleyCharlesBlake