Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Performance issue with BeanItemContainer
Hello!
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);
System.out.println("Beanitemcontainer created");
return bi;
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??
Tommy Stenberg
Hi,
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?)
Best Regards,
Marc
Hello Marc!
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
regards
Tommy Stenberg