You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2018/09/22 06:50:24 UTC

[GitHub] leventov commented on a change in pull request #6357: Improve interning in SQLMetadataSegmentManager

leventov commented on a change in pull request #6357: Improve interning in SQLMetadataSegmentManager
URL: https://github.com/apache/incubator-druid/pull/6357#discussion_r219663426
 
 

 ##########
 File path: server/src/main/java/org/apache/druid/metadata/SQLMetadataSegmentManager.java
 ##########
 @@ -535,6 +531,25 @@ public DataSegment map(int index, ResultSet r, StatementContext ctx)
     }
   }
 
+  /**
+   * For the garbage collector in Java, it's better to keep new objects short-living, but once they are old enough
+   * (i. e. promoted to old generation), try to keep them alive. In {@link #poll()}, we fetch and deserialize all
+   * existing segments each time, and them replace them in {@link #dataSourcesRef}. This method allows to use already
 
 Review comment:
   Thanks, fixed

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org