Chapter 21: Performance Optimization

With the help of the Odoo framework, you can develop large and complex applications. Good performance is key to the success of any project. In this chapter, we will explore the patterns and tools you need to optimize performance. You will also learn about the debugging techniques used to find the root cause of a performance issue.

In this chapter, we will cover the following recipes:

  • The prefetching pattern for recordsets
  • The in-memory cache – ormcache
  • Generating differently sized images
  • Accessing grouped data
  • Creating or writing multiple records
  • Accessing records through database queries
  • Profiling Python code

The prefetching pattern for recordsets

When you access data from a recordset, it makes a query ...

Get Odoo 14 Development Cookbook - Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.