Sunday, January 28, 2018

Faster fixtures, PostgreSQL foreign tables and more!

Posted by _cha1tanya

Hi there! This is Prathamesh, bringing you the latest edition of This Week in Rails, covering highlights from the Rails community, as well as changes recently made to the framework. Let’s dive in!

This Week’s Contributors

This week there were 22 contributors to Rails including contributions from 4 first-timers. Thanks!

Multi-statement query for inserting fixtures

This change constructs a single query for inserting fixtures from different tables. This change reduced the time to load around 700 fixtures from 15 seconds to 8 seconds! 🏎

Custom handling of exceptions that are discarded

This change allows a job that is discarded to be handled by a custom handler. The retry_on already provides the ability for a custom handler and now same has been added to discard_on handler.

Support for PostgreSQL foreign tables

With this change, it will be possible to work with models backed by foreign tables present in external PostgreSQL servers.

That’s it for this week. Many more changes were introduced to Rails than were featured here, check out the full week of commit activity to learn more!

Until next time!