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

ASF GitHub Bot commented on RYA-316:
------------------------------------

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

    https://github.com/apache/incubator-rya/pull/199#discussion_r132245115
  
    --- Diff: 
dao/mongodb.rya/src/main/java/org/apache/rya/mongodb/dao/SimpleMongoDBStorageStrategy.java
 ---
    @@ -64,14 +68,14 @@
         @Override
         public void createIndices(final DBCollection coll){
             BasicDBObject doc = new BasicDBObject();
    -        doc.put(SUBJECT, 1);
    -        doc.put(PREDICATE, 1);
    +        doc.put(SUBJECT_HASH, 1);
    +        doc.put(PREDICATE_HASH, 1);
             coll.createIndex(doc);
    --- End diff --
    
    @pujav65 thanks.  
    
    @isper3at clearly a bug.  please add OBJECT_HASH, OBJECT_TYPE_HASH to the 
first index. 


> 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