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

Puja Valiyil  commented on RYA-316:
-----------------------------------

Oh and I don't think truncating is a valid solution-- you lose portions of very 
long strings.  It would probably be better to not store the triple and instead 
detect and log the error at that point.  

> Long LineStrings break MongoDB ingest
> -------------------------------------
>
>                 Key: RYA-316
>                 URL: https://issues.apache.org/jira/browse/RYA-316
>             Project: Rya
>          Issue Type: Bug
>          Components: dao
>            Reporter: Aaron Mihalik
>            Assignee: Andrew Smith
>
> MongoDB will reject statements they contain very long linestrings.  
> Basically, the mongodb index key is limited to 1024 chars, so the insert will 
> fail if the literal is longer.
> [Here is some example 
> code|https://github.com/amihalik/rya-mongo-debugging/blob/master/src/main/java/com/github/amihalik/rya/mongo/debugging/linestring/LoadLineString.java].
>   I think the inserts will work if you use 10 points, but fail if you use 
> linestrings with 100 points.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to