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

    https://github.com/apache/incubator-rya/pull/199#discussion_r132234427
  
    --- Diff: 
dao/mongodb.rya/src/main/java/org/apache/rya/mongodb/dao/SimpleMongoDBStorageStrategy.java
 ---
    @@ -85,14 +89,14 @@ public DBObject getQuery(final RyaStatement stmt) {
             final RyaURI context = stmt.getContext();
             final BasicDBObject query = new BasicDBObject();
             if (subject != null){
    -            query.append(SUBJECT, subject.getData());
    +            query.append(SUBJECT_HASH, 
DigestUtils.sha256Hex(subject.getData()));
    --- End diff --
    
    I'll do some testing on this, but I'm guessing PRO: (1) smaller index size 
and (2) smaller messages over the wire.  CON: Need to take care when 
println'ing the query.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to