Hi Stas,

I found an important problem with the current configuration,
that is likely a major factor in the performance loss we see.

I noticed that https://query.wikidata.org/bigdata/ldf is served
on HTTPS, and even with HTTP/2.
However, the hypermedia controls inside of the message
direcs the server to the HTTP version of the URL:

    $ curl -s -H "Accept: text/turtle" https://query.wikidata.org/bigdata/ldf | 
grep '?subject'
                               
http://query.wikidata.org/bigdata/ldf{?subject,predicate,object}";

This means that, for every request, the browser has to perform 2 requests:
1. the request to http://query.wikidata.org/bigdata/ldf?…, which will redirect 
to the https:// version
2. the request to https://query.wikidata.org/bigdata/ldf?…
So this gives us all of the drawbacks of HTTP 1.1 and none of the advantages of 
HTTP/2 :-)

Could you please set
    "baseURL": "https://query.wikidata.org/bigdata/";
and verify that this gives indeed
     https://query.wikidata.org/bigdata/ldf{?subject,predicate,object}";
in the resulting pages?

Best,

Ruben
_______________________________________________
Wikidata mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata

Reply via email to