Jérôme,
There are 150K results?
There are streamed back (unlike Joseki) but it will take a while.
Which result format are you getting? You might try one of the other
result formats which might be a bit faster.
It looks like it is simply the cost of serializing and deserialialing
the results. Unlike the second "count(??)" query, the first query has
have to access the node table to get the URi/bnode labels for every result.
Andy
On 06/12/11 10:08, Jérôme wrote:
Hi,
I'm trying to query my TDB store and I have some performance problems:
Here a simple query example:
PREFIX test:<...>
PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT ?r
{
?r rdf:type test:word .
}
I have to wait around 20 seconds to get a result - how can i optimize it?
The "count" query
PREFIX test:<...>
PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT count(?r)
{
?r rdf:type test:word .
}
returns 150 000.
My fuseki server is running with a -Xmx1024m parameter.
Thank you.
Jérôme.
My config file:
<#service1> rdf:type fuseki:Service ;
fuseki:name "test" ; # http://host:port/ds
fuseki:serviceQuery "query" ; # SPARQL query service
fuseki:serviceQuery "sparql" ; # SPARQL query service
fuseki:serviceUpdate "update" ; # SPARQL query service
fuseki:serviceUpload "upload" ; # Non-SPARQL upload service
fuseki:serviceReadWriteGraphStore "data" ; # SPARQL Graph store protocol
(read and write)
# A separate ead-only graph store endpoint:
fuseki:serviceReadGraphStore "get" ; # SPARQL Graph store protocol (read
only)
fuseki:dataset <#test> ;
.
<#test> rdf:type ja:RDFDataset ;
rdfs:label "Books" ;
ja:defaultGraph
[ rdfs:label "discours.rdf" ;
a ja:MemoryModel ;
ja:content [ja:externalContent <file:Data/discours.rdf> ] ;
] ;
.