I think that creating an index on dishTypeId will drastically reduce query time.
In db4o 8.0 and above it will probably look something like this: (while creating configuration for ObjectContainer) EmbeddedConfiguration embeddedConfiguration = Db4oEmbedded.newConfiguration(); embeddedConfiguration.common().objectClass(Recipe.class).objectField("dishTypeId").indexed(true); In older versions of db4o it looks very similar -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en