# Callback is slow with multiple quick changes on inputs

**URL:** https://community.plotly.com/t/callback-is-slow-with-multiple-quick-changes-on-inputs/42499
**Category:** Dash Python
**Created:** [July 15, 2020, 1:23pm UTC](https://community.plotly.com/t/callback-is-slow-with-multiple-quick-changes-on-inputs/42499 "2020-07-15T13:23:47Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![trav](https://avatars.discourse-cdn.com/v4/letter/t/ba8739/32.png) [@trav](https://community.plotly.com/u/trav)
#### Post date: [July 15, 2020, 1:23pm UTC](https://community.plotly.com/t/callback-is-slow-with-multiple-quick-changes-on-inputs/42499/1 "2020-07-15T13:23:47Z")

</div>

I have a dash app that has 3 input fields. The first input field has say 5 selections, the second input has roughly 100 selections, and the third input has 12. As a user I may add or subtract selections rather fast. When that’s the case I can see the callback running every time. For example if I add 20 selections on the second input my callback gets ran 20 times and creates a slow down.

Is there a way where I can tell the callback to stop if it’s being called again?

---

<div class="post-metadata">

### Author: ![trav](https://avatars.discourse-cdn.com/v4/letter/t/ba8739/32.png) [@trav](https://community.plotly.com/u/trav)
#### Post date: [July 15, 2020, 3:44pm UTC](https://community.plotly.com/t/callback-is-slow-with-multiple-quick-changes-on-inputs/42499/2 "2020-07-15T15:44:41Z")

</div>

I’ve added a button and changed dropdown’s with long lists (even smaller lists) to State’s, then call my callback with a button push.
