Profiling code in Odoo

< / / / / / >
Skilled
Framework
V13.0
V 13.0
+/- 10 minutes
Written by Yenthe Van Ginneken
(0)

Quick scroll

1. Introduction

Since Odoo 11 a new tool was added to Odoo, named the profiler. This tool will allow you to see how code is behaving and how long every part of the code takes. This tool is especially handy if your code has to process big amounts of data or if you're facing performance issues in your code. In this tutorial you will learn how to use this profiler and how to identify issues in your code. We will inherit the 'res.partner' model and will create two Python functions. One function that has bad performance and one that has good performance. We'll look at the output and see how performance has been impacted by bad code.

This tutorial is exclusive for premium members
Become a member too and read all tutorials, unlimited.

Already a member? login here.