Description
In the previous issue (thanks for solving it) I've sent you a large database of 100 MB. This database had a huge issue with certain query, it took a whole minute to return data.
I've tested this database with standard unencrypted android SQLDatabase API and SQLCipher 4.6.0 community edition, and the results were the same in both cases, 60 secs aprox to return the data.
I've analyzed with EXPLAIN QUERY PLAN the SQL query to look for temporal indexes that were created for each query, and found that 9 indexes were missing. So I've created them and ran both tests and the queries took 1.5 secs to complete.
However, when I ran the same test with SQLCipher 4.7.2 Commercial edition, I was surprised to see that the unindexed database took only 2-3 seconds aproximately, and the indexed database took 1 second.
This is all great, but the question is why? Why is a poorly indexed database that fast on the commercial edition?