Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie

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?

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
4
wrz 15
20685
0
cze 25
2646
0
paź 24
1187
1
lis 23
2544
2
lip 20
5999