Hi,
I'm trying db4o and i'm having bad performance when using linq to db4o. (using 7.12)
Here is my configuration :
var configuration = Db4oFactory.Configure();
configuration.ObjectClass(typeof(MyTest)).ObjectField("MyInt").Indexed(true);
Here is the object i'm trying to save :
public class MyTest
{
public int MyInt;
}
And here is my code using linq to db4o (response time 650ms) :
var test = (from c in repo.ObjectContainer.Query<MyTest>()
where c.MyInt == 6500
select c).FirstOrDefault();
And the same request using native API (response time 28ms) :
var query = repo.ObjectContainer.Query();
query.Descend("MyTest");
query.Descend("MyInt").Constrain(6500)
Can someone tell me what's wrong with linq to db4o ?
Thanks