Printing longer lists with table formatter is extremely slow
|Assigned To:||Tomáš Strachota|
|Target version:||Foreman - Team Marek backlog|
|Found in release:||Pull request:||https://github.com/theforeman/hammer-cli/pull/229|
|Velocity based estimate||-|
The table formatter prints data via table_print gem into a string, then parses the output, reorders columns and finally prints the new string to stdout. This approach is extremely slow for long lists.
Attached logs show that printing a list of about 3000 records (hammer errata list) took 15m 13s, where the time needed to fetch the data from server was only 25 seconds.
The same command executed with base formatter took only 27 seconds. Other formatters perform similarly.