Pre-built database with pre-indexed views.

51 views
Skip to first unread message

Anton Anisimov

unread,
Jan 20, 2014, 1:34:29 PM1/20/14
to mobile-c...@googlegroups.com
Does anybody have done such case, when you have a 10K-20K items that have to indexed not when app is opened first time, but right from bundle? Because, in other case it have to index sometime, on old device it takes some time up to 30-50 seconds.

Jens Alfke

unread,
Jan 20, 2014, 3:07:53 PM1/20/14
to mobile-c...@googlegroups.com

On Jan 20, 2014, at 10:34 AM, Anton Anisimov <an...@invoodoo.com> wrote:

Does anybody have done such case, when you have a 10K-20K items that have to indexed not when app is opened first time, but right from bundle? Because, in other case it have to index sometime, on old device it takes some time up to 30-50 seconds.

If the db is bundled with the app, make sure that it contains up to date indexes. At build time, when you generate the database file that's going to get copied into the app bundle, run a query on each view after you've added all the documents.

—Jens
Reply all
Reply to author
Forward
0 new messages