# Delay when searching (filtering) option set

**URL:** <https://forum.bubble.io/t/delay-when-searching-filtering-option-set/297087>\
**Category:** Need help\
**Created:** [December 10, 2023, 11:11pm UTC](https://forum.bubble.io/t/delay-when-searching-filtering-option-set/297087 "2023-12-10T23:11:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tmxl](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/tmxl/32/234781_2.png) [@tmxl](https://forum.bubble.io/u/tmxl)\
**Post date:** [December 10, 2023, 11:11pm UTC](https://forum.bubble.io/t/delay-when-searching-filtering-option-set/297087/1 "2023-12-10T23:11:52Z")

</div>

As I understand it - option sets are not database entries, so in order to search them you must detect a value from an input and check if any option contains the string within the input like so:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/3/7/371cb6d6501b1a8a4f2b047db893676b9f550c90.png)

This works, however there is a 1 to 2 second delay between typing and filtering. I’ve tried to use various plugins to get the value instantly from the input, but this doesn’t fix the issue. It seems the delay is to do with the filtering itself.

You can see an example here:

![Recording 2023-12-11 at 09.56.30](https://us1.discourse-cdn.com/bubble/original/3X/5/0/5096706629694a11defb82525e325fff5ea57c22.gif)

I wouldn’t usually care about such a short delay, but this UI will be used a lot in my app and I’d love for it to be more responsive to improve UX.

It’s odd to me that there’s a delay at all since all option sets are loaded when the page loads…

**Is there any way I can reconfigure this so the search is instant? or at least faster than it is now?**

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [December 11, 2023, 1:09am UTC](https://forum.bubble.io/t/delay-when-searching-filtering-option-set/297087/2 "2023-12-11T01:09:21Z")

</div>

That’s almost _certainly_ got nothing to do with the filter (filtering an option set is basically instant - even with complex filters), and _everything_ to do with the standard 2 second delay Bubble puts on outputting an input’s value after the User stops typing. (most likely on the condition itself).

What exactly did you try in order to get the instant output of the input element? (it should be fairly simple, either with a plugin or some custom JavaScript).

---

<div class="post-metadata">

**Author:** ![tmxl](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/tmxl/32/234781_2.png) [@tmxl](https://forum.bubble.io/u/tmxl)\
**Post date:** [December 11, 2023, 1:46am UTC](https://forum.bubble.io/t/delay-when-searching-filtering-option-set/297087/3 "2023-12-11T01:46:10Z")

</div>

Thanks @adamhholmes - your repsonse gave me an idea for what the issue might be.

So I’d initially tried using [this plugin](https://bubble.io/plugin/1t---input-watcher-1646064999757x815455456760954900) to watch the input via ID and detect the plugins state in the filter condition, set up like so:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/4/c/4c9183726ca31e09ceafe99538412a09c29d7d31.png)

Looking at the filter again, it’s obvious what the problem was now - the constraint wasn’t using the input watchers value, and so it was still delayed by when the input itself reported a value… simple fix:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/0/7/0708083fb29e7e4d80f67fdc28e36c3487edef2a.png)

Search is now instant - thanks again  
T

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [February 18, 2024, 11:12pm UTC](https://forum.bubble.io/t/delay-when-searching-filtering-option-set/297087/4 "2024-02-18T23:12:09Z")

</div>

Closed on February 18, 2024, 11:12pm UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
