Distributed OLTP applications

Although some distributed transaction-processing applications maintain centralized primary data, others fragment primary data among replicate sites.

A primary fragment is a horizontal segment of a table that holds the primary version of a set of rows. Updates are applied to the primary version first and are then distributed to sites that have replicated copies of the data.

Sites that are responsible for, or own, portions of a table by definition have multiple primary fragments. For example, the salesdetail table in Figure 2-3 has primary fragments in Chicago, New York, and San Francisco:

Figure 2-3: Table with multiple primary fragments

Figure 2-3 shows how the sales detail table has primary fragments in Chicago, New York, and San Francisco.

A key constructed from one or more columns identifies the primary fragment where a row belongs. The key for the salesdetail table is the stor_id column.

There are three application models based on multiple primary fragments:

More information about these models can be found in Chapter 3, “Implementation Strategies”