Relationships: Combine Relationships to Reduce Performance Impact

Creating multiple relationships on a type can impact performance. When possible, combine relationships to improve performance.

Creating multiple relationships on a type can impact performance. When possible, combine relationships to improve performance.

When possible, avoid this example, which includes separate relationships for Mouse and Keyboard, two accessories in a product bundle:

1relation mouse : Mouse;
2relation keyboard : Keyboard;

Follow this example, which uses one relationship for Accessories, which can include Mouse, Keyboard, and other accessories.

1relation accessories : Accessories;