Skip to Content
Menu
This question has been flagged

I made some a widget for the tree view to display an image in Odoo10.

It basically just shows the link of the image of a Many2one field on a tree.

like this, for example:

<img src="/web/image?model=product.product&amp;id=11630&amp;field=image_small&amp;unique=37469">


It works nicely, but the problem is when I display like 150 of these small images in a single form, it absolutely tanks our server CPU performance!! I mean, it's not even doing anything else or any other ORM or SQL queries, it is just literally requesting to display the images from the links, but the CPU would shoot up to 100% with even just 4 or 5 concurrent users in the server.


here's a screenshot of a local machine running the function:

https://snipboard.io/jhpPF8.jpg


Am I missing something here? Is there any right way to do this?

Avatar
Discard
Related Posts Replies Views Activity
4
Sep 15
19385
0
Oct 24
155
1
Nov 23
1344
0
Sep 22
1383
2
Jul 20
4928