Hi all, presently i am getting problem to retrieve data from db4o, it has been consuming much more time than sqlite . is i am doing something wrong or it is due to db4o? i have object of Recipe Class, for testing i have approx 1000 objects of Recipe, but in real world it will go approx 50000 objects or more. in my testing with 1000 objects, when i have been retrieving Recipe by it's one field, it is consuming approx 181293ms. my query code is below.
public List<Recipe> getRecipebyDishType(final int dishType) { List<Recipe> recipelist=null; long t1=System.currentTimeMillis(); recipelist= db().query(new Predicate<Recipe>() { public boolean match(Recipe recipe) { return recipe.get_dishTypeID() == dishType; } }); long t2=System.currentTimeMillis(); Log.e("Time consume to retrive recipe by Dish type ***","Time consume to retrive recipe by Dish type ="+(t2-t1)+"ms"); return recipelist; } 1. is i am doing any thing wrong? 2, can we have a query to retrieve random recipe (single object) by dishTypeID fields? Thanks imran ali -- 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