W3C home > Mailing lists > Public > public-sparql-dev@w3.org > October to December 2006

RE: Cross-graph vs. merged-graph performance

From: Seaborne, Andy <andy.seaborne@hp.com>
Date: Wed, 15 Nov 2006 12:15:13 -0000
Message-ID: <86FE9B2B91ADD04095335314BE6906E897F3BD@sdcexc04.emea.cpqcorp.net>
To: "Danny Ayers" <danny.ayers@gmail.com>, <public-sparql-dev@w3.org>




-------- Original Message --------
> From: Danny Ayers <>
> Date: 9 November 2006 17:54
> 
> I'm querying across multiple named graphs, and given the shape of the
> data it looks like I'll have the choice between - 
> 
> a) creating a dataset and using queries with multiple GRAPH blocks
> b) merging the graphs into one and then querying that as the default
> graph 
> 
> Either way I should get the same results. Typically there will be a
> single shared node across the graphs, a kind of foreign key (this is
> also currently the name of a graph, though that may change).  
> 
> Is either approach likely to be significantly faster in general, or is
> it entirely case-dependent? 

I'd guess that a merged graph wil be faster, at least not slower.  The
nature of the query will have a big effect though.

	Andy

> 
> I've a feeling this has an obvious answer but seem to have a mental
> block on factoring these things out. 
> 
> Implementationwise I'm using ARQ in-memory (already flipped there from
> using MySQL-backed models, there's a possibility of having to flip
> back, praise be to common interfaces).  
> 
> Cheers,
> Danny.
> 
> --
> 
> http://dannyayers.com
Received on Wednesday, 15 November 2006 13:11:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:17:05 GMT