ASF GitHub Bot commented on RYA-316:

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

    --- Diff: 
    @@ -53,8 +54,11 @@
         public static final String OBJECT_TYPE_VALUE = 
         public static final String CONTEXT = "context";
         public static final String PREDICATE = "predicate";
    -    public static final String OBJECT = "object";
    +    public static final String PREDICATE_HASH = "predicate_hash";
    +    public static final String OBJECT = "object_original";
    --- End diff --
    hey i don't think we need to hash predicates and subjects - just objects.  
objects are possibly literals which means they can have unspecified length (and 
in practice are likely to be very long -- sometimes people literally put books 
into comments which are object values).  theoretically predicates and subjects 
are URIs which means that to be valid they are limited in length.  no harm in 
doing it, it just adds a layer of indirection at query time.  

> 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

Reply via email to