CODEBLIX / Application deliveryRR78 · Monthly programming acceptance
Association loading demo

Fewer reads. The same complete order list.

Compare per-order and batched lookups against a small order fixture. Check record equality and missing relationships separately before accepting the change.

Fixture revision 1
4Orders retained
6Order lines
3 / 3Customers available
$108.50Order subtotal · USD

One list, three linked record sets

Synthetic order fixture · integer-cent arithmetic · no tax or freight
OrderCustomerLinesCalculationSubtotalRelationship

Per-order retrieval

Read the order list, then retrieve a customer and its lines for each order.

1 + 4 + 4 = 9 repository calls

Batched retrieval

Read orders once, retrieve unique customer IDs together, then retrieve lines for the full order set.

1 + 1 + 1 = 3 repository calls

The browser executes instrumented repository lookups on these synthetic records. Use the acceptance pattern to agree the SQL trace and response checks for your Rails application.