arXiv (Cornell University) · 2013 · 24 citations · 27 references
ComputingComputer ScienceInformation SystemsData ManagementData StructuresDatabasesDatabase ManagementQuery ExpansionQuery OptimizationQuery ProcessingRelational AlgebraStructured Query LanguageGraph IndexingIndexesJoin AlgorithmsJoin OrderingJoin ProcessingOperatorsQuery MinimizationQuery Performance Optimization
SPARQL basic graph pattern (BGP) (a.k.a. SQL inner-join) query optimization is a well researched area. However, optimization of OPTIONAL pattern queries (a.k.a. SQL left-outer-joins) poses additional challenges, due to the restrictions on the \textit{reordering} of left-outer-joins. The occurrence of such queries tends to be as high as 50% of the total queries (e.g., DBPedia query logs). In this paper, we present \textit{Left Bit Right} (LBR), a technique for \textit{well-designed} nested BGP and OPTIONAL pattern queries. Through LBR, we propose a novel method to represent such queries using a graph of \textit{supernodes}, which is used to aggressively prune the RDF triples, with the help of compressed indexes. We also propose novel optimization strategies -- first of a kind, to the best of our knowledge -- that combine together the characteristics of \textit{acyclicity} of queries, \textit{minimality}, and \textit{nullification}, \textit{best-match} operators. In this paper, we focus on OPTIONAL patterns without UNIONs or FILTERs, but we also show how UNIONs and FILTERs can be handled with our technique using a \textit{query rewrite}. Our evaluation on RDF graphs of up to and over one billion triples, on a commodity laptop with 8 GB memory, shows that LBR can process \textit{well-designed} low-selectivity complex queries up to 11 times faster compared to the state-of-the-art RDF column-stores as Virtuoso and MonetDB, and for highly selective queries, LBR is at par with them.
27
Principles of database and knowledge-base systems
Choice Reviews Online · 1989 · 2.7K citations
Panagiotis Karras, Abraham Bernstein · Proceedings of the VLDB Endowment · 2008 · 621 citations
Using Semi-Joins to Solve Relational Queries
Philip A. Bernstein, Dah-Ming W. Chiu · Journal of the ACM · 1981 · 466 citations · Full text
Scalable SPARQL querying of large RDF graphs
Jiewen Huang, Daniel J. Abadi, Kun Ren · Proceedings of the VLDB Endowment · 2011 · 455 citations