We have quite an amount of indices on our collection. However we use the $expr stage on multiple collections, but on all our views the indices are not used anymore.
We have views that should use the ix_last_processed_time
and ci_CPW.TIMESTAMP.ts_CPW.NAME
indices.
[
{
"v" : 2.0,
"key" : {
"CUP_CODE" : 1.0
},
"name" : "ix_CUP_CODE"
},
{
"v" : 2.0,
"key" : {
"LID_CODE" : 1.0
},
"name" : "ix_LID_CODE"
},
{
"v" : 2.0,
"key" : {
"CPW.TIMESTAMP.ts" : 1.0,
"CPW.NAME" : 1.0
},
"name" : "ci_CPW.TIMESTAMP.ts_CPW.NAME"
},
{
"v" : 2.0,
"key" : {
"CPPG.TIMESTAMP.ts" : 1.0,
"CPPG.NAME" : 1.0
},
"name" : "ci_CPPG.TIMESTAMP.ts_CPPG.NAME"
},
{
"v" : 2.0,
"key" : {
"CPX.TIMESTAMP.ts" : 1.0,
"CPX.NAME" : 1.0
},
"name" : "ci_CPX.TIMESTAMP.ts_CPX.NAME"
},
{
"v" : 2.0,
"key" : {
"CPFORM.TIMESTAMP.ts" : 1.0
},
"name" : "ix_CPFORM.TIMESTAMP.ts"
},
{
"v" : 2.0,
"key" : {
"CPFORM.OCV1_TIMESTAMP.ts" : 1.0
},
"name" : "ix_CPFORM.OCV1_TIMESTAMP.ts"
},
{
"v" : 2.0,
"key" : {
"_id" : 1.0
},
"name" : "_id_"
},
{
"v" : 2.0,
"key" : {
"CPS.TIMESTAMP.ts" : 1.0,
"CPS.NAME" : 1.0
},
"name" : "ci_CPS.TIMESTAMP.ts_CPS.NAME"
},
{
"v" : 2.0,
"key" : {
"CPM.TIMESTAMP.ts" : 1.0,
"CPM.NAME" : 1.0
},
"name" : "ci_CPM.TIMESTAMP.ts_CPM.NAME"
},
{
"v" : 2.0,
"key" : {
"last_processed_time" : 1.0
},
"name" : "ix_last_processed_time",
"background" : true
},
{
"v" : 2.0,
"key" : {
"CPM.ORDER_IDENTIFIER" : 1.0
},
"name" : "pix_CPM.ORDER_IDENTIFIER",
"background" : true,
"partialFilterExpression" : {
"CPM.ORDER_IDENTIFIER" : {
"$exists" : true
}
}
},
{
"v" : 2.0,
"key" : {
"CPM.WICKEL_IDENTIFIER" : 1.0
},
"name" : "pix_CPM.WICKEL_IDENTIFIER",
"background" : true,
"partialFilterExpression" : {
"CPM.WICKEL_IDENTIFIER" : {
"$exists" : true
}
}
},
{
"v" : 2.0,
"key" : {
"CPM.BECHER_IDENTIFIER" : 1.0
},
"name" : "pix_CPM.BECHER_IDENTIFIER",
"background" : true,
"partialFilterExpression" : {
"CPM.BECHER_IDENTIFIER" : {
"$exists" : true
}
}
},
{
"v" : 2.0,
"key" : {
"CPW.KERN_IDENTIFIER" : 1.0
},
"name" : "pix_CPW.KERN_IDENTIFIER",
"background" : true,
"partialFilterExpression" : {
"CPW.KERN_IDENTIFIER" : {
"$exists" : true
}
}
},
{
"v" : 2.0,
"key" : {
"CPW.ANODE_LE_IDENTIFIER" : 1.0
},
"name" : "pix_CPW.ANODE_LE_IDENTIFIER",
"background" : true,
"partialFilterExpression" : {
"CPW.ANODE_LE_IDENTIFIER" : {
"$exists" : true
}
}
},
{
"v" : 2.0,
"key" : {
"CPW.ANODE_RI_IDENTIFIER" : 1.0
},
"name" : "pix_CPW.ANODE_RI_IDENTIFIER",
"background" : true,
"partialFilterExpression" : {
"CPW.ANODE_RI_IDENTIFIER" : {
"$exists" : true
}
}
},
{
"v" : 2.0,
"key" : {
"CPW.KATHODE_LE_IDENTIFIER" : 1.0
},
"name" : "pix_CPW.KATHODE_LE_IDENTIFIER",
"background" : true,
"partialFilterExpression" : {
"CPW.KATHODE_LE_IDENTIFIER" : {
"$exists" : true
}
}
},
{
"v" : 2.0,
"key" : {
"CPW.KATHODE_RI_IDENTIFIER" : 1.0
},
"name" : "pix_CPW.KATHODE_RI_IDENTIFIER",
"background" : true,
"partialFilterExpression" : {
"CPW.KATHODE_RI_IDENTIFIER" : {
"$exists" : true
}
}
},
{
"v" : 2.0,
"key" : {
"CPW.INT_SEPARATOR_LE_IDENTIFIER" : 1.0
},
"name" : "pix_CPW.INT_SEPARATOR_LE_IDENTIFIER",
"background" : true,
"partialFilterExpression" : {
"CPW.INT_SEPARATOR_LE_IDENTIFIER" : {
"$exists" : true
}
}
},
{
"v" : 2.0,
"key" : {
"CPW.INT_SEPARATOR_RI_IDENTIFIER" : 1.0
},
"name" : "pix_CPW.INT_SEPARATOR_RI_IDENTIFIER",
"background" : true,
"partialFilterExpression" : {
"CPW.INT_SEPARATOR_RI_IDENTIFIER" : {
"$exists" : true
}
}
},
{
"v" : 2.0,
"key" : {
"CPW.EXT_SEPARATOR_LE_IDENTIFIER" : 1.0
},
"name" : "pix_CPW.EXT_SEPARATOR_LE_IDENTIFIER",
"background" : true,
"partialFilterExpression" : {
"CPW.EXT_SEPARATOR_LE_IDENTIFIER" : {
"$exists" : true
}
}
},
{
"v" : 2.0,
"key" : {
"CPW.EXT_SEPARATOR_RI_IDENTIFIER" : 1.0
},
"name" : "pix_CPW.EXT_SEPARATOR_RI_IDENTIFIER",
"background" : true,
"partialFilterExpression" : {
"CPW.EXT_SEPARATOR_RI_IDENTIFIER" : {
"$exists" : true
}
}
},
{
"v" : 2.0,
"key" : {
"CPW.ABLEITERCU_IDENTIFIER" : 1.0
},
"name" : "pix_CPW.ABLEITERCU_IDENTIFIER",
"background" : true,
"partialFilterExpression" : {
"CPW.ABLEITERCU_IDENTIFIER" : {
"$exists" : true
}
}
},
{
"v" : 2.0,
"key" : {
"CPW.ABLEITERAL_IDENTIFIER" : 1.0
},
"name" : "pix_CPW.ABLEITERAL_IDENTIFIER",
"background" : true,
"partialFilterExpression" : {
"CPW.ABLEITERAL_IDENTIFIER" : {
"$exists" : true
}
}
},
{
"v" : 2.0,
"key" : {
"CPW.AN_TAPE_UP_IDENTIFIER" : 1.0
},
"name" : "pix_CPW.AN_TAPE_UP_IDENTIFIER",
"background" : true,
"partialFilterExpression" : {
"CPW.AN_TAPE_UP_IDENTIFIER" : {
"$exists" : true
}
}
},
{
"v" : 2.0,
"key" : {
"CPW.AN_TAPE_LO_IDENTIFIER" : 1.0
},
"name" : "pix_CPW.AN_TAPE_LO_IDENTIFIER",
"background" : true,
"partialFilterExpression" : {
"CPW.AN_TAPE_LO_IDENTIFIER" : {
"$exists" : true
}
}
},
{
"v" : 2.0,
"key" : {
"CPW.CA_TAPE_UP_IDENTIFIER" : 1.0
},
"name" : "pix_CPW.CA_TAPE_UP_IDENTIFIER",
"background" : true,
"partialFilterExpression" : {
"CPW.CA_TAPE_UP_IDENTIFIER" : {
"$exists" : true
}
}
},
{
"v" : 2.0,
"key" : {
"CPW.CA_TAPE_LO_IDENTIFIER" : 1.0
},
"name" : "pix_CPW.CA_TAPE_LO_IDENTIFIER",
"background" : true,
"partialFilterExpression" : {
"CPW.CA_TAPE_LO_IDENTIFIER" : {
"$exists" : true
}
}
},
{
"v" : 2.0,
"key" : {
"CPW.SCHEIBE_IDENTIFIER" : 1.0
},
"name" : "pix_CPW.SCHEIBE_IDENTIFIER",
"background" : true,
"partialFilterExpression" : {
"CPW.SCHEIBE_IDENTIFIER" : {
"$exists" : true
}
}
},
{
"v" : 2.0,
"key" : {
"CPW.DEDI_IDENTIFIER" : 1.0
},
"name" : "pix_CPW.DEDI_IDENTIFIER",
"background" : true,
"partialFilterExpression" : {
"CPW.DEDI_IDENTIFIER" : {
"$exists" : true
}
}
},
{
"v" : 2.0,
"key" : {
"CPXSP.SETD_X_IDENTIFIER" : 1.0
},
"name" : "pix_CPXSP.SETD_X_IDENTIFIER",
"background" : true,
"partialFilterExpression" : {
"CPXSP.SETD_X_IDENTIFIER" : {
"$exists" : true
}
}
},
{
"v" : 2.0,
"key" : {
"CPW.TIMESTAMP.ts" : 1.0
},
"name" : "ix_CPW.TIMESTAMP.ts"
}
]
@chris It’s MongoDB 7.0.8 hosted on Atlas (dedicated cluster, AWS).