[MediaWiki-l] Create page through api very slow

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[MediaWiki-l] Create page through api very slow

Ad Strack van Schijndel
Hi,

 

We have a wiki on which we create pages through the api. One category of pages, ‘Person’ pages take much longer than other pages.

 

The calls look like this:

 

action=edit&format=json&title=Organisatie%2F1547554622&text=%7B%7BOrganisatie%0A%7CName%3Dtest123%0A%7CArchived%3DNo%0A%7D%7D&summary=User%3A+USER&token=ebc088384201f777ef72cade39e13d15c3dcf3f%2B%5C

 

takes 1.1 seconds to complete, where:

 

action=edit&format=json&title=Persoon%2F1547554694&text=%7B%7BPersoon%0A%7CName%3D121212%0A%7CWerkvorm%3DZZP%0A%7CArchived%3DNo%0A%7D%7D&summary=User%3A+USER&token=1a7e283307bf3f76f8baafd66f371d9c5c3dcf86%2B%5C

 

takes 7.4 seconds.

 

So we don’t see any significant difference. Also the templates are not very special. The difference is very consistent.

 

We use:
MW 1.27.4
Cargo 2.0.1
And some other extensions that shouldn’t have anything to do with this.

 

Does anyone have a tip on how to find out what is causing this difference in performance?

 

Thanks in advance!

 

Ad

_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Reply | Threaded
Open this post in threaded view
|

Re: Create page through api very slow

Bartosz Dziewoński
On 2019-01-15 14:36, Ad Strack van Schijndel wrote:
> The calls look like this:
>
> action=edit&format=json&title=Organisatie%2F1547554622&...
>
> takes 1.1 seconds to complete, where:
>
> action=edit&format=json&title=Persoon%2F1547554694&...
>
> takes 7.4 seconds.

Possibly your templates perform some Cargo queries over all
persons/organizations. Does your wiki happen to have approximately
7 times more persons than organizations? :)

--
Bartosz Dziewoński

_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Reply | Threaded
Open this post in threaded view
|

Re: Create page through api very slow

Ad Strack van Schijndel
Indeed there is a difference there and there were. Hidden in forms that don't show up when you open the page.
You're making an important point that we didn't realize well. That is that an api call that creates a page is only finished after the page is fully parsed. And when you go to that page afterwards the page is - in our case - parsed again.
We removed the forms and are looking at 0,8 seconds now __

Thanks!
Ad

Op 22-01-19 02:48 heeft MediaWiki-l namens Bartosz Dziewoński <[hidden email] namens [hidden email]> geschreven:

    On 2019-01-15 14:36, Ad Strack van Schijndel wrote:
    > The calls look like this:
    >
    > action=edit&format=json&title=Organisatie%2F1547554622&...
    >
    > takes 1.1 seconds to complete, where:
    >
    > action=edit&format=json&title=Persoon%2F1547554694&...
    >
    > takes 7.4 seconds.
   
    Possibly your templates perform some Cargo queries over all
    persons/organizations. Does your wiki happen to have approximately
    7 times more persons than organizations? :)
   
    --
    Bartosz Dziewoński
   
    _______________________________________________
    MediaWiki-l mailing list
    To unsubscribe, go to:
    https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
   



_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l