Excel Sheet Appender Issues

Hello Colleagues,
I need to append a table containing 100k rows into one excel file.
Is there a way to index the appending process for example start appending from C2 cell ?
I tried to used the excel sheet appender node and the process required a significant amount of memory to execute the task.
Is there a lighter way to process this task??

Hi,

Did you check the option “Autosize columns” in the Layout?

I noticed that in the “Excel sheet appender” and “Excel writer” the time to finish depends on selection of the option “Autosize columns”.
I have a table with about 257000 rows and 12 columns. The “Excel writer” node finises in 12 seconds, but if I check the “Autosize columns” option then the node finises in 12 minutes and 45 seconds. I have tried with the “Excel sheet appender” node with a table with about 16000 rows and 26 columns. The node finises in 23 second (without “Autosize columns”) and 5 minutes and 10 seconds with “Autosize columns” option checked.

Question for KNIME developers:
Can be this two nodes optimized to take less time to write to excel with “Autosize columns” option selected.

Thank you

3 Likes

Hi @andrejz -

I can reproduce this behavior on my machine too. For whatever reason, the “Autosize columns” options increases execution time for the Excel Writer node by a factor of about 10.

Seems like it might be a bug, so I’ll write a ticket (internal: AP-14265) and ping the dev team. Thanks for reporting!

2 Likes

Hi,
according to me this is not a bug.
Autosizing a column is an expensive operation because final size of each column depends by used font (that isn’t monospace) and specific chars in the cell (‘i’ is closer than ‘O’) for every cell of the column.

4 Likes

autosizing was always a very costly operation. Not sure if you could make it faster. One idea could be to use only the first x rows to do it.

What also would be nice is to freeze the top n rows or columns and activate column filter.

2 Likes

For the column filter there is an open ticket

3 Likes

Thanks for the reply, I will try this…

Hi @mlauber71,

What do you mean? Don’t follow :confused:

Br,
Ivan

Like this:

image

You mean in a table output view?
Br,
Ivan

Yes for the excel export node

Hi @mlauber71,

I still don’t follow from where this freezing and filtering should take place :weary:

Br,
Ivan

When the data is exported into Excel. So if you open the file in Excel you would have the file like shown in the screenshot.

1 Like

Hi @mlauber71,

think I get it now :smiley: But why would you want that?

Br,
Ivan

So I would have my file ready to explore. These are the typical steps I would take after exporting to Excel :slight_smile: - I might write something with OpenPyxl …

1 Like

Hi @mlauber71,

ok. I see. Seems any option to format Excel file from outside would be welcomed by many Excel users :smiley: Anyways think this is more appropriate for Continental nodes.

Br,
Ivan

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.