Skip to content

Commit

Permalink
BrightstarWeightedOptimiser now applied to SPARQL queries
Browse files Browse the repository at this point in the history
This work is still incomplete though as testing shows that the optimizer
isn't really doing a good job. This is primarily (I think) because we
don't have enough stats. See issue #269
  • Loading branch information
Kal Ahmed committed Jan 20, 2016
1 parent ff19f34 commit 5103aa4
Show file tree
Hide file tree
Showing 6 changed files with 446 additions and 16 deletions.
3 changes: 2 additions & 1 deletion src/core/BrightstarDB/BrightstarDB.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@
<Compile Include="Query\BrightstarRdfProvider.cs" />
<Compile Include="Query\BrightstarVirtualAlgebraOptimiser.cs" />
<Compile Include="Query\BrightstarVirtualNode.cs" />
<Compile Include="Query\BrightstarWeightedOptimiser.cs" />
<Compile Include="Query\Processor\BrightstarWeightedOptimiser.cs" />
<Compile Include="Query\Processor\BaseQueryOptimiser.cs" />
<Compile Include="Query\Processor\JoinOptimiser.cs" />
<Compile Include="Query\VirtualizingSparqlDataset.cs" />
<Compile Include="RdfFormat.cs" />
Expand Down
1 change: 1 addition & 0 deletions src/core/BrightstarDB/Query/BrightstarQueryProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ internal class BrightstarQueryProcessor : LeviathanQueryProcessor

static BrightstarQueryProcessor()
{
SparqlOptimiser.QueryOptimiser = new NoReorderOptimiser();
SparqlOptimiser.AddOptimiser(new VariableEqualsOptimizer());
SparqlOptimiser.AddOptimiser(new JoinOptimiser());
}
Expand Down

0 comments on commit 5103aa4

Please sign in to comment.