← Graph

Colocate Data Fetching with Data Usage

takeaway 1 connections

Stephen Margheim's design recommendation for Yippee: the only reason Rails pushes queries into controllers is to avoid reckless partial-driven P50 collapse under MySQL/Postgres latency. With SQLite's effectively zero-latency indexed reads, putting data fetching next to data usage inside views is architecturally cleaner, respects locality of behaviour, and is actively better.

type
insight
takeaway Colocate Data Fetching with Data Usage
from_talk
Design recommendation justified by SQLite's negligible query overhead.

Provenance