bugzilla-daemon-f4n82jGjeJOzKZ/5c+
2008-07-19 21:13:00 UTC
https://bugzilla.wikimedia.org/show_bug.cgi?id=14859
Roan Kattouw <roan.kattouw-***@public.gmane.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |roan.kattouw-***@public.gmane.org
Status|NEW |RESOLVED
Resolution| |WONTFIX
--- Comment #1 from Roan Kattouw <roan.kattouw-***@public.gmane.org> 2008-07-19 21:13:02 UTC ---
(In reply to comment #0)
just load all the result data in memory and iterate through it. If you really
need titles in the requested order, you can reorder them yourself.
the data you need ordered by page ID. There's really no difference between
reordering stuff to conform to the requested order on the server side and doing
so on the client side. In this case, it's better to leave it at the client
side, since it's not a very popular feature.
cases. This is because the database is pretty restrictive in the things it can
order by efficiently. Ordering by page ID works for most queries, which is why
we do it. As to ordering in the API itself (on the server side): that's every
bit as slow/fast as ordering on the client side, so let's just leave that up to
the client.
Roan Kattouw <roan.kattouw-***@public.gmane.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |roan.kattouw-***@public.gmane.org
Status|NEW |RESOLVED
Resolution| |WONTFIX
--- Comment #1 from Roan Kattouw <roan.kattouw-***@public.gmane.org> 2008-07-19 21:13:02 UTC ---
(In reply to comment #0)
When querying a number of titles in a singe request, especially when it is
expected that some won't exist, it would be very useful to be able to access
the results in the same order the titles were in.
I don't see how that's particularly useful, as our target audience are bots whoexpected that some won't exist, it would be very useful to be able to access
the results in the same order the titles were in.
just load all the result data in memory and iterate through it. If you really
need titles in the requested order, you can reorder them yourself.
It should be much less work to add an index field to api.php compared to
iterating through the results with lots of string operations at the local side.
Actually, it's not. We feed the list of titles to the database, which spits outiterating through the results with lots of string operations at the local side.
the data you need ordered by page ID. There's really no difference between
reordering stuff to conform to the requested order on the server side and doing
so on the client side. In this case, it's better to leave it at the client
side, since it's not a very popular feature.
"index" could be a new field next to "pageid", "ns", "title" etc. It seems so
low cost that it need not even be optional.
Ordering stuff by ns/title on the database side is *far* from low-cost in mostlow cost that it need not even be optional.
cases. This is because the database is pretty restrictive in the things it can
order by efficiently. Ordering by page ID works for most queries, which is why
we do it. As to ordering in the API itself (on the server side): that's every
bit as slow/fast as ordering on the client side, so let's just leave that up to
the client.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.