[ 
https://issues.apache.org/jira/browse/JENA-626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15022338#comment-15022338
 ] 

ASF GitHub Bot commented on JENA-626:
-------------------------------------

Github user ajs6f commented on a diff in the pull request:

    https://github.com/apache/jena/pull/95#discussion_r45620222
  
    --- Diff: 
jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/servlets/ResponseResultSet.java
 ---
    @@ -309,13 +296,81 @@ private static void output(HttpAction action, String 
contentType, String charset
                     out.println("##  Query cancelled due to timeout during 
execution   ##") ;
                     out.println("##  ****          Incomplete results          
 ****   ##") ;
                     out.flush() ;
    -                // No point raising an exception - 200 was sent already.  
    +                // No point raising an exception - 200 was sent already.
                     //errorOccurred(ex) ;
                 }
    -        // Includes client gone.
    -        } catch (IOException ex) 
    +            // Includes client gone.
    +        } catch (IOException ex)
             { ServletOps.errorOccurred(ex) ; }
             // Do not call httpResponse.flushBuffer(); here - Jetty closes the 
stream if it is a gzip stream
    -        // then the JSON callback closing details can't be added. 
    +        // then the JSON callback closing details can't be added.
    +    }
    +
    +    private static void output(HttpAction action, String contentType, 
String charset, OutputContent proc, CacheAction cacheAction)
    +    {
    +        try {
    +            setHttpResponse(action, contentType, charset) ;
    +            action.response.setStatus(HttpSC.OK_200) ;
    +
    +            OutputStream outServlet = action.response.getOutputStream();
    +            Cache cache = SPARQL_Query_Cache.getCache();
    --- End diff --
    
    Shouldn't this be properly parameterized?


> SPARQL Query Caching
> --------------------
>
>                 Key: JENA-626
>                 URL: https://issues.apache.org/jira/browse/JENA-626
>             Project: Apache Jena
>          Issue Type: Improvement
>            Reporter: Andy Seaborne
>            Assignee: Saikat Maitra
>              Labels: java, linked_data, rdf, sparql
>
> Add a caching layer to Fuseki to cache the results of SPARQL Query requests.  
> This cache should allow for in-memory and disk-based caching, configuration 
> and cache management, and coordination with data modification.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to