I am trying to improve some queries on a Android project and I read on many sites that using joins, properly of course, is faster than using subqueries. So i tried changing a query that uses 8 subqueries in one that uses 3 left join, with 3 selects. when running on a test DB i found that the first, using 8 subqueries, is faster than the one using joins.
I tried running the EXPLAIN QUERY PLAN command and got the following results:
Using subqueries
Using join
Am I doing something wrong on my joins? Why does the first query ends faster than the second? Note: Not using those 3 selects inside the joins proved to be quite hard as i need to count how many times a certain data appears.