objective c - Is there any way to be notified when sqlite tables update? -
i developing ios app uses sqlite database of fmdb
. used work core data
, slow 5000 items insert @ time. fmdb
transactions make such inserts more faster!
also need mechanism can notify view controllers when items sqlite table updated. nsfetchedresultscontroller
solution, since use fmdb
can no longer use nsfetchedresultscontroller
.
is there way notified when sqlite tables update?
my advice revert core data. should address insert performance issue rather dropping down database level , having revisit kinds of far more complicated mechanisms of data model setup. specific issue case in point.
to optimize speed of inserts refer numerous helpful sof answers. has been pointed out, finding right batch size data type key here.
regardless of optimizations, however, can leverage core data framework perform these intensive operations in background. not impact usability of app, presumably less 0.7 seconds inserts fmdb.
Comments
Post a Comment