2627282930313233343536
log("created"); for (int j = 0; j < 10; j++) { Cursor c = db.rawQuery("select * from test", new String[0]); int count = c.getCount(); for (int i = 0; i < count; i++) { c.move(1); c.getInt(0); c.getString(1); } c.close(); }
4647484950515253545556
log("inserted"); for (int i = 0; i < 10; i++) { Cursor c = db.rawQuery("select * from test where id=?", new String[] { "" + i }); int count = c.getCount(); if (count > 0) { c.move(1); c.getInt(0); c.getString(1); } c.close(); }