Karol Szuster's wroclove.rb 2022 talk surveys three levels of data partitioning for multi-tenant Rails applications — row-level, schema-level, and database-level — with their pros, cons, and implementation gotchas. Covers default scopes, Postgres row-level security, session parameters, connection pooling caveats with PgBouncer, horizontal sharding in Rails 6.1, and concludes that row-level partitioning is the safest default and that the choice must be made early.
claude-opus-4-78ce5dd5d