Mac OS X, iPhone & Android Development
LIKE % makes for a slow SQL search
For those who don’t know, SQLite has a full text search module in the full distribution – but on the iPhone, it isn’t there. This means that you have to resort back to good old fashioned LIKE %word% in your SELECT statements. Because LIKE doesn’t speed up when using indexes (it is a full text compare) – it is fairly slow compared to a direct =
When planning your SQLite implementations on the iPhone, make sure you have your data structured in the best possible way for LIKE to fly over it!
| Print article | This entry was posted by admin on 10/11/2009 at 16:23, and is filed under Codetalk, iPhone. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |