In this example, the Messages link connects each
Address object to related
Participant objects. Since a participant exists for each sender or recipient of every message, some address objects could be linked to thousands or millions of participant objects. Because the
Messages extent table,
Address, is declared as sharded, the
Messages link can be declared as sharded. That is, only links whose target table is sharded can be declared as sharded.
This query searches for Address objects whose
Name contains the term “dell” and that are connected to participants whose
ReceiptDate is in January, 2013. In other words, this query lists all addresses that sent or received a message in a specific time frame. Queries that fit this pattern are more efficient for high fan-out links declared as sharded.