Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add indices for HistoryAtimeIndex and CompletionHistoryAtimeIndex
before ------ sqlite> SELECT * FROM History where not redirect and not url like "qute://%" and atime > ? and atime <= ? ORDER BY atime desc; Run Time: real 0.072 user 0.063334 sys 0.010000 sqlite> explain query plan SELECT * FROM History where not redirect and not url like "qute://%" and atime > ? and atime <= ? ORDER BY atime desc; 0|0|0|SCAN TABLE History 0|0|0|USE TEMP B-TREE FOR ORDER BY sqlite> explain query plan select url, title, strftime('%Y-%m-%d', last_atime, 'unixepoch') from CompletionHistory where (url like "%qute%" or title like "%qute%") order by last_atime desc; 0|0|0|SCAN TABLE CompletionHistory 0|0|0|USE TEMP B-TREE FOR ORDER BY after ----- sqlite> SELECT * FROM History where not redirect and not url like "qute://%" and atime > ? and atime <= ? ORDER BY atime desc; Run Time: real 0.000 user 0.000000 sys 0.000000 sqlite> explain query plan SELECT * FROM History where not redirect and not url like "qute://%" and atime > ? and atime <= ? ORDER BY atime desc; 0|0|0|SEARCH TABLE History USING INDEX AtimeIndex (atime>? AND atime<?) sqlite> explain query plan select url, title, strftime('%Y-%m-%d', last_atime, 'unixepoch') from CompletionHistory where (url like "%qute%" or title like "%qute%") order by last_atime desc; 0|0|0|SCAN TABLE CompletionHistory USING INDEX CompletionAtimeIndex
- Loading branch information