Uploaded image for project: 'Blazegraph (by SYSTAP)'
  1. Blazegraph (by SYSTAP)
  2. BLZG-858

alpp performance hole

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed - Won't Fix
    • Resolution: Won't Fix
    • Affects Version/s: BIGDATA_RELEASE_1_2_2
    • Fix Version/s: None
    • Component/s: Static Query Optimizer
    • Labels:
      None

      Description

      The following query performs badly (11.361s) with appropriate data, whereas uncommenting the brace pair improves performance by order of magnitude (0.039s)

      base <http://localhost:8000/>
      prefix syapse: </graph/syapse#>
      prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
      prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
      
      SELECT ?key (COUNT(?record) as ?c) ?label
      
      WITH
      { SELECT *
      WHERE {
      
         ?aaa rdfs:subClassOf * syapse:Record.
          ?record rdf:type ?aaa  ;
      .
      } } AS %BROWSE
      
      WHERE
      {
         INCLUDE %BROWSE
         ?record rdf:type ?class .
      # These braces optimize the query:
      # {    
         ?class rdfs:subClassOf * ?key . 
      # }
         ?key rdfs:label ?label .
      }
      GROUP BY ?key ?label
      ORDER BY ?key  LIMIT 30
      
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              michaelschmidt michaelschmidt
              Reporter:
              jeremycarroll jeremycarroll
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: