gianm commented on code in PR #12419:
URL: https://github.com/apache/druid/pull/12419#discussion_r850511266


##########
core/src/main/java/org/apache/druid/timeline/SegmentId.java:
##########
@@ -266,6 +266,7 @@ public static SegmentId dummy(String dataSource, int 
partitionNum)
   private final long intervalEndMillis;
   @Nullable
   private final Chronology intervalChronology;
+  private final Interval interval;

Review Comment:
   The comment above mentions that `interval` is not stored, on purpose, in 
order to reduce heap usage of SegmentId. Presumably that refers to heap usage 
on Coordinators and Brokers for clusters that have a large number of segments.
   
   Is it important for performance that the interval be cached?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to