db4o Developer Community

db4o open source object database, native to Java and .NET
Welcome to db4o Developer Community Sign in | Join

Re: slow retrieving data from sample

  •  05-23-2007, 06:21 AM

    Re: slow retrieving data from sample

    > 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 bad:

    Test: index on pilot and points
    Execution time=39 ms

    I run code on another computer and results had been similiar. Really is my code fast in your computer?

    BTW I thought index must be set before any opening of database and the first query is slower because of initial indexing of fields.
    I have db4o 6.1.501

    PS: Thank you very much for spending time on such "silly" questions.

    Jan Chodura
    Filed under: ,
View Complete Thread