---
title: "Comment by Duko tools on \"Why your search bar is slow (and it's probably not the reason you think)\" | Hashnode"
description: "The debounce + index combo is the one most people skip half of, adding an index without debouncing still fires a query per keystroke, and debouncing without an"
url: "https://hashnode.com/posts/why-your-search-bar-is-slow-and-it-s-probably-not-the-reason-you-think/6a8294912d5187fa9b6b554d/comment/6a84605c0da0d1694bc9c12c"
---

[Discussion](https://hashnode.com/posts/why-your-search-bar-is-slow-and-it-s-probably-not-the-reason-you-think/6a8294912d5187fa9b6b554d)

Comment [Why your search bar is slow (and it's probably not the reason you think)](https://hashnode.com/posts/why-your-search-bar-is-slow-and-it-s-probably-not-the-reason-you-think/6a8294912d5187fa9b6b554d)

[Duko tools](https://hashnode.com/@talha24ramzan)

[Aug 18](https://hashnode.com/posts/why-your-search-bar-is-slow-and-it-s-probably-not-the-reason-you-think/6a8294912d5187fa9b6b554d/comment/6a84605c0da0d1694bc9c12c)

The debounce + index combo is the one most people skip half of, adding an index without debouncing still fires a query per keystroke, and debouncing without an index just delays the same expensive scan. Needed both to actually fix it, which the writeup makes clear.

"Bigger server means doing the same wasteful thing slightly faster" is a good line for the instinct to scale before profiling.

[Aakib Shah Sayed](https://hashnode.com/@Skyz)

[Aug 19](https://hashnode.com/posts/why-your-search-bar-is-slow-and-it-s-probably-not-the-reason-you-think/6a8294912d5187fa9b6b554d/comment/6a84605c0da0d1694bc9c12c#reply-6a8516cd428888507bc1a8ae)

Yup Debouncing + indexing fix is the way to go.. The every keystoke
