# Optimize history records for a workflow with all local activities

**URL:** <https://community.temporal.io/t/optimize-history-records-for-a-workflow-with-all-local-activities/2819>\
**Category:** Community Support\
**Tags:** java-sdk, cassandra\
**Created:** [August 27, 2021, 9:38pm UTC](https://community.temporal.io/t/optimize-history-records-for-a-workflow-with-all-local-activities/2819 "2021-08-27T21:38:24Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![maxim](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/maxim/32/8_2.png) [@maxim](https://community.temporal.io/u/maxim)\
**Post date:** [August 27, 2021, 9:49pm UTC](https://community.temporal.io/t/optimize-history-records-for-a-workflow-with-all-local-activities/2819/2 "2021-08-27T21:49:05Z")

</div>

Local activities have to be recorded as they are not reexecuted on replay. One possible optimization is to not include arguments into the marker event as they are there only for human consumption.

Set `LocalActivityOptions.doNotIncludeArgumentsIntoMarker` to `true` to not include them.

---

_[View the full topic](https://community.temporal.io/t/optimize-history-records-for-a-workflow-with-all-local-activities/2819)._
