jpatokal / mediawiki-gateway

Ruby framework for MediaWiki API manipulation
Other
133 stars 50 forks source link

POST all requests #41

Closed mtyeh411 closed 12 years ago

mtyeh411 commented 12 years ago

I'm not sure if there was a reason to only send "action=query" API requests with GET. This limits the amount we are able to query from a single request, which is problematic for some dependent methods (such as, export). I don't notice any stipulations in the API docs showing that a GET is required.

Thanks.

jpatokal commented 12 years ago

Older versions of the gem did post everything, but issue #24 raised the valid concern that this prevents caching and thus imposed a lot of additional load on servers getting hit by the gem, so since 0.5.0 queries have been GETted.

If you need to export large sets of data, you should be using a generator instead of passing in long lists of titles: http://www.mediawiki.org/wiki/API:Query#Exporting_pages

mtyeh411 commented 12 years ago

Thanks for the explanation.