Skip to content
Snippets Groups Projects
Commit f0646cb5 authored by Raphael Collet's avatar Raphael Collet
Browse files

[IMP] fields: use a "lazy" cursor to compute attribute `digits`

Borrowing a cursor each time you access `field.digits` may be costly, because
of the connection reset.  Moreover, in most cases, the cursor is not used at
all, since the decimal precision are kept in cache.

For the installation of module `product` with its demo data, the number of
cursor allocations was reduced from ~1500 to about 50!
parent 6f4e7867
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment