list-domains and or all script listing function's with limit flags

I run a pagination script that parses list-domains and displays the output... simple-multiline seems to be very heavy for several domains.

about 8 seconds for every 10 domains... and it's a json array/plain text being retrieved. Imagine if you had a couple thousand domains and somebody chose to list 50 at a time... this would be madness.

Anyway point is I would like to see if somebody would be willing to add a limit flag to the list-domains feature to allow you to say select domains like this. Initially get a list of names only pop them in an array get the size of that array. You know how many domains you now have. You want 50 per page or 10 or 25 whatever. So you should be able to run list-domains like this.

list-domains --limit 0 10 where 0 is the starting index and 10 is the limit you want to retrieve.

Status: 
Closed (fixed)

Comments

Yes, list-domains can be slow as it retrieves information about each domain that can come from Apache or MySQL.

There are a couple of solutions though :

  1. Use the --simple-multiline flag to limit the output to only information that can be fetched quickly.

  2. Use the --name-only flag to get all domain names, then call list-domains with --domain whatever.com multiple times. You can provide the --domain flag more than once for each call to output multiple domains.

Wow that is a marked improvement using the additional --domain flags. Went from 8 seconds per 10 domains to 2 seconds per 10. So at my upper range of 50 that ends up being 10 seconds which is acceptable even if at that higher end it kinda drags. It was going to be much worse without. Thank you very much Jamie.

Automatically closed -- issue fixed for 2 weeks with no activity.