Fix slow library search on sqlite 3.8.
Add explanatory comment to last commit.
Merge pull request #4285 from paperbagcorner/sqlite-3.8

Fix slow library search on sqlite 3.8.