New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Symfony connsole table helper extremely slow when fed a big data set #21568
Comments
So many rows is probably out of scope (in practice, most shells will not less you scroll up enough to see them btw). |
but, but... I have my screen buffer set to 500K in Putty! :-D Anyway, I'm adding a warning to the user, in the specific console application, if rows are above 10K or similar |
I'd say this is an edge case. If you generate 250K rows, it's better to output them into a file instead of the command console. |
@javiereguiluz true, but the way I output it to a file is to call the console command and pipe it to file :P |
@gggeek sure ... but the idea would be to replace the console table stuff by a simple |
If you are working with 100k+ rows you might want to invest some time in a more appropriate language for the task. That said, "a couple of minutes" sounds awfully long. |
Just to clarify: the standard usecase for this tool is 10-100 lines of output, and it is designed to give its output to the user, not a report for further processing. |
Let's close this as "won't fix" because this is a very rare edge case. You could output the report to a file (without using Console's tables), you could trim the results to 100 or 200 lines and add a message saying that there are 250K rows more, etc. |
I am using the table helper to display a list of about 350K rows.
It takes more than a couple of minutes for the following code to execute and the display to appear on screen:
Is there a way to optimize the output speed ?
Is the case of that many rows considered out of scope ?
The text was updated successfully, but these errors were encountered: