Invoice search performance cover

The Invoice Page That Took 4 Seconds to Search

In Polaris, the POS system I built for retail shops, the invoice page has a product search bar. A cashier types a product name, results appear, they click to add it to the invoice. Simple. Except it wasn’t. Every keystroke fired an API call. On a shop with 500 products, search took 3-4 seconds because each request hit the database, serialized the response, and traveled back over the network. Cashiers were waiting on every single search. During rush hours, this was painful. ...

February 11, 2025 · 2 min · Muhammad Hassan Raza