Red Hat Bugzilla – Bug 608621
default bkr distros-list takes too long
Last modified: 2010-06-30 13:03:47 EDT
Description of problem:
%> time bkr distros-list
There is no output suggesting what's happening until the user is finally hit with a massive amount of streaming output once the data is retrieved.
The time it takes to grab all available distros-list is a little on the long-side. 3 min. + and i assume as we continue forward in time, this will get longer...
I think a saner default would be to first tell the user something, eg:
%> bkr distros-list
Searching... (filters set...)
Then use some default filter, say for example filter based on InstallName's which contain references to this month/year.
INFO: Using Defaults (Filter: InstallName = `date '+%Y%m'`)
This way, A) users will know what's going on as it's happening B) will get a quick response C) will realize it's better to be explicit than implicit.
Another option might be to set (eg) --limit = 100 as default and force users to set --limit = 0 if they actually want to return /all/ available distros, unfiltered.
I'm making the default 10.