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

    https://github.com/apache/incubator-usergrid/pull/81#discussion_r18323313
  
    --- Diff: 
stack/core/src/main/java/org/apache/usergrid/corepersistence/CpEntityManager.java
 ---
    @@ -496,15 +496,16 @@ public void update( Entity entity ) throws Exception {
             org.apache.usergrid.persistence.model.entity.Entity cpEntity =
    --- End diff --
    
    Can we replace this with this call?
    
     org.apache.usergrid.persistence.model.entity.Entity cpEntity = new 
org.apache.usergrid.persistence.model
                    .entity.Entity( entityId );
    
    That way we're not double loading.  Just pushing the update down to the 
collection, then loading the merged entity to index.


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to