简体   繁体   English

Vaadin提高表格渲染速度

[英]Vaadin improve table rendering speed

Im kinda new to the fantastic Vaadin framwork so I got a perhaps trivial question. 我对梦幻般的Vaadin框架有点陌生,所以我提出了一个琐碎的问题。 Im loading a simple table with information from our databas. 我正在从我们的数据库中加载一个简单的表中的信息。 This takes way to long, like 10 sec, the response from the DB is very fast, where talking about 1000 rows with a response time of 2-3 ms but the actual rendering/painting from vaadin makes this very slow. 这需要很长时间,例如10秒,来自DB的响应非常快,在其中谈论1000行,响应时间为2-3 ms,但是vaadin的实际渲染/绘制使它非常慢。

As a container we use BeanItemContainer with objects so that we can add what ever kind of beans we want. 作为容器,我们将BeanItemContainer与对象一起使用,以便我们可以添加所需的任何种类的bean。 On the table itself we have set setCacheRate(10); 在表本身上,我们设置了setCacheRate(10);。

Anyone got any idés on how to speed things up ? 任何人都对如何加快速度有想法吗?

Best Regards Marthin 最好的问候马辛

So it seems most of the rendering speed could be improved by trying to avoiding using requestRepaint in my action handlers. 因此,似乎可以通过尝试避免在动作处理程序中使用requestRepaint来提高大多数渲染速度。 This does however mean that some of my interactions will not show immediatly but this is something we I live with. 但是,这确实意味着我的某些互动不会立即显示,但这是我们生活的一部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM