# Tag configure history in Java, set Min Time between samples

**URL:** <https://forum.inductiveautomation.com/t/tag-configure-history-in-java-set-min-time-between-samples/71188>\
**Category:** Module Development\
**Created:** [March 16, 2023, 8:27pm UTC](https://forum.inductiveautomation.com/t/tag-configure-history-in-java-set-min-time-between-samples/71188 "2023-03-16T20:27:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tom.prodehl](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tom.prodehl/32/22713_2.png) [@tom.prodehl](https://forum.inductiveautomation.com/u/tom.prodehl)\
**Post date:** [March 16, 2023, 8:27pm UTC](https://forum.inductiveautomation.com/t/tag-configure-history-in-java-set-min-time-between-samples/71188/1 "2023-03-16T20:27:52Z")

</div>

tagPropsCfg.set(TagHistoryProps.HistorySampleMode, SampleMode.OnChange);

if Min Time Between Samples is 1 second and tag is updated at about that rate, samples get tossed. If Min time between is 0, samples do not get tossed.  
How to set "Min Time Beween Samples" via SDK. I see nothing for that, perhaps I am blind  
Using 8.1.24  
I found SampleMode.TagGroup to be more what I wanted, but the question remained.
