Talks
Speakers
Events
Topics
Sign in
Home
Talks
Speakers
Events
Topics
Leaderboard
Use
Analytics
Sign in
Suggest modification to this talk
Title
Description
Viktor Schmidt's presentation at the Ruby Warsaw Community Conference took place on July 19, 2024, in Warsaw. ____________________________________________ ► Looking for a dedicated software development team? Contact us at: https://visuality.page.link/page ► SUBSCRIBE to learn more about software development: http://bit.ly/SubscribeVisuality ► Read what clients say about us on Clutch.co: https://clutch.co/profile/visuality ► Find us here: Instagram: https://www.instagram.com/visuality.pl/ Facebook: https://www.facebook.com/visualitypl Linkedin: https://pl.linkedin.com/company/visualitypl X: https://x.com/visuality.pl Dribble: https://dribbble.com/VISUALITY GitHub: https://github.com/visualitypl
Date
Summarized using AI?
If this talk's summary was generated by AI, please check this box. A "Summarized using AI" badge will be displayed in the summary tab to indicate that the summary was generated using AI.
Show "Summarized using AI" badge on summary page
Summary
Markdown supported
In the presentation titled "Avoiding Pitfalls in Active Record: Practical Usage and Best Practices," Viktor Schmidt discusses the efficient use of Active Record in Ruby on Rails. Delivered at the Ruby Warsaw Community Conference on July 19, 2024, this talk emphasizes leveraging Active Record effectively to enhance application performance and maintainability. Key points covered in the presentation include: - **Understanding Active Record**: Schmidt highlights that many developers, especially newcomers, are unfamiliar with effectively using Active Record despite its powerful features. - **Performance Issues**: He shares insights from his experience at Yellow Page, addressing common performance problems caused by improper use of Active Record. He advocates for understanding the implications of using raw SQL versus Active Record, noting that built-in Active Record features often lead to clearer and more maintainable code. - **Logging and Debugging**: The importance of logging is addressed, particularly with the introduction of features in Rails 7.1 for tracking code execution, including the use of the Marginalia gem for enhanced logging. - **Utilizing Counter Caches**: The adoption of counter caches for calculations is discussed, underscoring their utility in improving performance in applications with specific data needs. - **Active Record Associations**: Schmidt stresses the relevance of understanding Active Record associations to structure queries more efficiently, demonstrating this with insights about the `has_one` relation. - **Using Subqueries**: The talk illustrates how subqueries can be beneficial. It is emphasized that calculations should ideally be performed directly in the database, as this can enhance speed compared to processing in Ruby. - **Potential of Caching**: He notes the necessity of employing caching strategies during peak load to lessen database strain and how gems and tools can facilitate these enhancements. - **Moving Forward**: The importance of continuous learning about Active Record is reinforced, advocating for the development of a robust, maintainable codebase through an improved understanding of its functionalities. In conclusion, Schmidt encourages developers to embrace the challenges of mastering Active Record fully, as it is vital for achieving better performance and maintainable applications. His insights are rooted in years of professional experience, making this a valuable resource for Ruby on Rails developers seeking to optimize their use of Active Record.
Suggest modifications
Cancel