query = "SELECT" + " e.id AS _id," + " ke.id AS ke_id,"
+ " ke.fk as ke_fk," + " ke.value as ke_value,"
+ " re.id AS ke_id," + " re.fk as re_fk,"
+ " re.value as re_value," + " s.id AS s_id,"
+ " s.fk as s_fk," + " g.id AS g_id," + " g.fk as g_fk,"
+ " g.lang," + " g.value as g_value" + " FROM entry e"
+ " INNER JOIN k_ele ke ON e.id = ke.fk"
+ " INNER JOIN r_ele re ON e.id = re.fk"
+ " INNER JOIN sense s ON e.id = s.fk"
+ " INNER JOIN gloss g ON s.id = g.fk"
+ " WHERE re.value like '" + hiragana
+ "%' OR g.value like '" + lookingFor
+ "%' OR g.value like '%" + strSpace + lookingFor
+ "%' GROUP BY s.id LIMIT 5 ";
此查询从 SQLite 数据库中获取数据,并将获取的数据放入 listview。即使我设置了 LIMIT 5,它的工作速度也很慢。应该怎么做才能使搜索快速工作?