Controlling Aggregation

It should be clear by now that clients that update or insert contacts do not explicitly change the contact table. The contact table is updated by triggers that look into the raw contact table and raw contact data table.

Raw contacts that get added or changed, in turn, affect the aggregated contacts in the contacts table. However, you may not want to allow two contacts to be aggregated.

You can control the aggregation behavior of a raw contact by setting the aggregation mode when that contract is created. As you can see from the raw contact table columns in Listing 30–26, the raw contact table contains a field called aggregation_mode. The values for these aggregation modes are shown in Listing 30–37 and explained in the ...

Get Pro Android 4 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.