mariotaku/twidere — pull request #23 by bestform (2012-08-19 20:42:27+00:00)
Title: override bulkInsert to use transactions, making the operation way faster

hey.

I found out, that you are using the native "bulkInsert" method of the ContentResolver. This one doesn't use transactions, which makes it painfully slow.

I've overridden the method in TweetStoreProvider, so that it uses transactions. For me it is 10 times faster, now.
I avoided calling "onDatabaseUpdated" as I figured it isn't needed at this point, because the native method wouldn't have called it either.

Thanks for this great client. I hope, my update is useful.

Greetings from Germany,
Matthias (@bestform in twitter)