Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
3366 Visualizzazioni

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
4
set 15
20835
0
giu 25
2796
0
ott 24
1401
1
nov 23
2662
2
lug 20
6096