I'd like to know the best approach to do a count over a list that is part of a collection, for simplicity I've abstracted to the following model:
public class User
{
[BsonId]
public ObjectId Id { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public List<ObjectId> Followers { get; set; }
public List<ObjectId> Following { get; set; }
}
Just assume that probably the average of followers/ following could be around 2k on each property, I know some people like to pre-calculate the information using inc, is that recommend under the circumstances described above? if that's the case which could be the approach using the C# driver?