Project

General

Profile

Evolution #4086

Content provider batch notifications (and transactions ?)

Added by Gregg C. over 5 years ago. Updated almost 5 years ago.

Status:
Fermé
Priority:
Normal
Assignee:
Gregg C.
Category:
ORM
Target version:
Start date:
03/26/2014
Due date:
% Done:

100%

Estimated time:
Bdc:

Description

Currently, in our provider implementation, a notification is sent (if something has been inserted/modified/deleted) every time we go into the insert/delete/update method.
But, when feeding a batch to the provider, it usually means that the various batch operations are related (ie. I insert a User and five commentaries this user have written. I put it all in a batch.)

So, for now, the provider will do a notification after every operation where in fact, it would be nicer to notify all the uris called by the batch after all the operations have been done. If we do not, we may have too much refreshes from lists.

Also, I may have found that the transactions are not automatically managed by the provider when doing a batch. Android Calendar application seems to do it manually : http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android-apps/4.2.2_r1/com/android/providers/calendar/SQLiteContentProvider.java#SQLiteContentProvider.insert%28android.net.Uri%2Candroid.content.ContentValues%29


Recurrences

History

#6Updated by Gregg C. over 5 years ago

Appliqué par commit origin|commit:f2ac0bbe87e144b806a76fdbc4c18ddf1a5d9170.

Also available in: Atom PDF

Go to top
Add picture from clipboard (Maximum size: 200 MB)