Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3380 Lượt xem

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?

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 9 15
20843
0
thg 6 25
2797
0
thg 10 24
1404
1
thg 11 23
2664
2
thg 7 20
6098