---
title: "Discussion on \"The O(n^2) Bug That Looked Like Clean Code\" | Hashnode"
description: "Discussion on \"The O(n^2) Bug That Looked Like Clean Code\". We shipped a feature on a Tuesday. By Thursday the API was timing out. The monitoring dashboard showed p99 latency climbing from 80ms to 14 seconds over 48 hours. Nothing had changed except the number"
url: "https://hashnode.com/posts/the-o-n-2-bug-that-looked-like-clean-code/69f51047ec32cba9e569250c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [The O(n^2) Bug That Looked Like Clean Code](https://aralroca.hashnode.dev/the-o-n-2-bug-that-looked-like-clean-code?utm_source=hashnode&utm_medium=feed)

We shipped a feature on a Tuesday. By Thursday the API was timing out. The monitoring dashboard showed p99 latency climbing from 80ms to 14 seconds over 48 hours. Nothing had changed except the number

May 1 · 7 min read · aralroca.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#performance](https://hashnode.com/tag/performance)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#algorithms](https://hashnode.com/tag/algorithms)
-   [#debugging](https://hashnode.com/tag/debugging)

## Written by

[Aral Roca](https://hashnode.com/@aralroca)

@aralroca · Barcelona, Spain

  
[View profile](https://hashnode.com/@aralroca)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
