On Fri, Jun 28, 2013 at 9:50 PM, William Surya P
<[email protected]> wrote:
>
> I want to ask is it possible to know the total rows if I use list query? For 
> example, I want to know how many editor are there, before making this kind of 
> request: api.php?action=query&list=allusers&augroup=editor and repeatly using 
> param query-continue aufrom later.

No. Doing this would require that the server actually fetch all those
rows in order to count them, which would defeat the purpose of having
a limit.

> And is it possible to sort the query result. For example by userid or 
> registration time?

The results will always be sorted in some manner, in this case by
username. There's no way to change the sort order for list=allusers,
as the ordering is constrained by the ways the rows can be efficiently
fetched from the database. If you need other sort orders, you'll have
to fetch them and then sort them in your client.


-- 
Brad Jorsch (Anomie)
Software Engineer
Wikimedia Foundation

_______________________________________________
Mediawiki-api mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api

Reply via email to