# Batching Callbacks

**URL:** <https://community.plotly.com/t/batching-callbacks/37930>\
**Category:** Dash Python\
**Created:** [April 16, 2020, 8:20pm UTC](https://community.plotly.com/t/batching-callbacks/37930 "2020-04-16T20:20:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ale7191](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@ale7191](https://community.plotly.com/u/ale7191)\
**Post date:** [April 16, 2020, 8:20pm UTC](https://community.plotly.com/t/batching-callbacks/37930/1 "2020-04-16T20:20:22Z")

</div>

Hello,

I have a custom dash component that has drag functionality. As you drag something, the dash prop updates many times. I have a callback based on this dash prop and it’s called hundreds of times, making the response time slow. Is there anyway to limit the amount of time the callback fires off?

---

<div class="post-metadata">

**Author:** ![chriddyp](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/chriddyp/32/16855_2.png) [@chriddyp](https://community.plotly.com/u/chriddyp)\
**Post date:** [April 17, 2020, 5:31am UTC](https://community.plotly.com/t/batching-callbacks/37930/2 "2020-04-17T05:31:08Z")

</div>

Right now, the only way to do it is within your component code - implement throttling on your `setProps` call.

---

<div class="post-metadata">

**Author:** ![ale7191](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@ale7191](https://community.plotly.com/u/ale7191)\
**Post date:** [April 17, 2020, 7:20pm UTC](https://community.plotly.com/t/batching-callbacks/37930/3 "2020-04-17T19:20:25Z")

</div>

Thank you. I will implement that. I’ve also switched the callback to be triggered at an interval rather than by the component update. It seems to work
