var collection = _database.GetCollection<SomeObject>("Records");
foreach (SomeObject s in collection.ToList())
{
anotherObject.SomeProperty = s.SomeProperty;
}
where anotherObject is not mapped to a MongoDb Collection I get an access to the database everytime I try to read from anotherObject.SomeProperty, which gives me a huge performance hit.
Hi Karsten,
Could you please answer the following:
anotherObject.SomeProperty
? SomeProperty
? i.e. is it another object ?Kind regards,
Wan.