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

Alex Hall commented on JENA-267:
--------------------------------

Agreed, any sensible producer will put the head first. The only concern I would 
have is somebody using an off-the-shelf JSON serializer with no control over 
the order an object's keys are written. I think your proposed workaround to 
revert to in-memory behavior if the head isn't first is probably the best 
approach.
                
> SPARQL JSON Parser is not streaming
> -----------------------------------
>
>                 Key: JENA-267
>                 URL: https://issues.apache.org/jira/browse/JENA-267
>             Project: Apache Jena
>          Issue Type: Improvement
>          Components: ARQ
>    Affects Versions: ARQ 2.9.1
>            Reporter: Rob Vesse
>            Assignee: Rob Vesse
>              Labels: json, sparql
>
> The current SPARQL JSON parser in ARQ parses the JSON by parsing the entire 
> response into a in-memory data structure and then iterating over that.  So 
> for large results it is trivial to hit an OutOfMemory exception.
> This task is to reimplement the SPARQL JSON parser to be fully streaming in 
> its implementation in line with all the other results parsers

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to