|
|
Browse by Tags
All Tags » PERFORMANCE » Index (RSS)
-
I'm playing around with db4o to see if I can use if for future projects. I have created a simple application with one entity to store. The entity has a string data member that I require to be unique. I will always retrieve objects based on this data member thus I removed the class index and and defined a new one for the data ...
-
> To do this, call the following two lines *before* you call
> > fillUpDB()
> Db4o.configure().objectClass(Car.class).objectField(''pilot'').indexed(true);
> Db4o.configure().objectClass(Pilot.class).objectField(''points'').indexed(true);
Carl, thanks for tip.
Unfortunately it doesn't work. Result is forever ...
-
Thank you Carl,
> If you want to measure the difference between indexed
> queries and non-indexed queries in one app, you should
> test storing and retrieving objects of different classes.
I cut the example to only one searching method - fullIndex:
import java.io.File;import com.db4o.Db4o;import com.db4o.ObjectContainer;import ...
|
|
|