jidanni@jidanni.org schreef:
"ND" == Nicolas Dumazet nicdumz@gmail.com writes:
ND> There's no efficient way to write such a SQL query. First I admit I don't even know how to spell "SQL", but working on how to export all or several namespaces with one API query, wouldn't SELECT page_id FROM page; or SELECT page_id FROM page WHERE page_namespace IN (1,2,3); be efficient at the core of generators?
Yes, they'd work, but would be of extremely limited use since adding pretty much any other condition results in an inefficient query. In practice, that would mean that multiple values for apnamespace would disable pretty much all other ap* parameters. I recall explaining earlier on this list that that'd mean too much complex logic for such minimal gain.
Ordering isn't important for our exports. They would be called by something like $ GET api.php?...&xxexport&xxexportns=all #or 1,2,3 > file.sql
Export doesn't generate lists of pages itself, but relies on allpages to do that, so a parameter like exportns doesn't make sense considering the way things currently work.
Roan Kattouw (Catrope)