Is this compound index feasible:
{
last_logged_in: -1, // milliseconds
age: -1,
height: -1,
gps: -1,
education: -1,
// etc., 20 more fields
}
The challenge is that this compound index contains more than 20 fields and the lead field, last_logged_in
, will be highly volatile. It is constantly updated.
So the question is, will write queries be too slow?