Slow SQLite access on iPhone

Posted by georgij on Stack Overflow See other posts from Stack Overflow or by georgij
Published on 2010-03-22T04:57:43Z Indexed on 2010/03/22 5:01 UTC
Read the original article Hit count: 397

Filed under:
|
|

I have a quite slow data retrieval from a sqlite database on my iPhone and perhaps someone have an alternative idea to explain this. From what I tracked down so far sqlite3_step(statement) is sometimes unusually slow. While retrieving e.g. 50 rows from the database to execute this step takes normally some milliseconds but sometimes it takes several seconds.

My database is not small (80MB) and my theory is that the reason is paging. But can someone else think of an other reason for this?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about sqlite