$ the-wire · showcase
Postgres index lookups scoped to the resolved table, mariadb replaces mysql5 in dbconsole
By RepoJournal · Filed · About Rails · Composed from the cited sources · methodology
Rails' PostgreSQL adapter stops returning another schema's indexes when two schemas share a table name, and the dbconsole client fallback moves off a MacPorts binary that no longer exists.
Read PostgreSQL indexes and constraints from the table a name resolves to rails/rails
PostgreSQL index and constraint readers (fetch_indexes, fetch_foreign_keys, fetch_check_constraints, fetch_unique_constraints, fetch_exclusion_constraints) matched unqualified names against every schema on the search path, so a table name two schemas both carry returned both tables' indexes and constraints. They now resolve the name the way ::regclass does, reusing a WITH tables CTE built by re...
Replace the `mysql5` fallback in `ActiveRecord.database_cli` with `mariadb` rails/rails
The mysql5 fallback added in 2008 has been dropped from ActiveRecord's database_cli, since MacPorts no longer ships that port and every MySQL release it pointed at is EOL. MariaDB's client binary, named mariadb since 10.4.6, is the fallback now, which matters because MariaDB deprecated its mysql symlink in 11.0.
Avoid some allocations and speed up the template lookup path rails/rails
jhawthorn's template lookup patch removes allocations along the render path and moves path normalization from LookupContext down into PathSet, which is both simpler and avoids an array allocation on return. The benchmark renders one template that renders 100 partials, so expect the gain in partial-heavy rendering, not in a single page render.
Consolidate common methods of `Mysql2Adapter` and `TrilogyAdapter` rails/rails
The shared surface between Mysql2Adapter and TrilogyAdapter gets cleaned up: text_type? becomes :nodoc: public so its one caller no longer goes through send, and error_number becomes private to match its only caller. Neither is a supported extension point.
Update jeremy-daer.md rails/website
On the website desk, the team pages were corrected: journeyman title updates on the core and foundation rosters, where Jeremy Daer and Ryan Sherlock had their titles fixed.