Table + Table.ColumnGenerator.generateCell() issues - called too many times

Hello everybody,

I have an issue with the column generation feature of the Table component.

I have a table with one generated column which is populated asynchronously from another thread, at a later stage after its creation.

The volume of data is around 17.000 rows [
17.397
to be precise].
When I start adding the items the table, the .generateCell() method gets called
348.380
times in total.
Basically it gets called
20
times for each added item into the table.

The table cache rate is set to 10 and the page length is set to 20.

Do you guys have any idea ?

Thanks in advance!

Hi Matei,

Did I got it right that you are calling addItem()-method directly to the Table component? In that case, the container is already set to the Table component and the component will listen all the changes in the data container. That’s the reason why generateCell() is called more than is needed in this case.

Instead of calling the table directly, you should create a new container in your background thread. When you have all the data in the container, bind it to the table component.

Hopefully this helps,
Jarno