Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Performance issue with BeanItemContainer
I have a BeanItemConatainer with aprox 12000 entries
It takes to long time to create this Beanitemcontainer, about 15 sek.
Code is like this.
System.out.println("Create the beanitemcontainer");
BeanItemContainer<Song> bi = new BeanItemContainer<Song>(list);
the list contains my objects and take about 1 sek to create.
the time between the prints is 15 sek.
How can I improve this??
The BeanItemContainer does indeed seem to have some performance issues when adding a lot of beans, especially if equals() happens to be slow.
Added ticket #4106 for this issue.
(BTW, which version are you using?)
Thank you for your response.
I am using version 6.2.0 of vaadin.
For your information.
I was doing a test with the Addressbookapplication and changed the number of person entries, first to 12000 that worked but somewhat slow, and then used 100 000 entries, that did not work, I did get a java out of memory error.
I read somewhere on this forum that the vaadin people had done tests with 500 000 entries in a table, how did they do that??
I am using my beanitemcontainer to fill a table and really need to have lots of entries in it.
Do I need to write my own equals and hasch code metods in my bean?? I have tested both can't see a difference.
My app is a ejb3 app. Mybe this HbnContainer can be used . I had a look at it but have no idea on how to use it, is there an example of how to use it