---
title: "Discussion on \"Stop Wasting Queries: How to Cancel MySQL Requests When the Client Disconnects\" | Hashnode"
description: "Discussion on \"Stop Wasting Queries: How to Cancel MySQL Requests When the Client Disconnects\". Introduction\nIn a high-traffic web application, many users may be clicking around at once. Imagine a user who requests a long list of items, then quickly navigates away before the server has finished fetching them from the database. By default, that ..."
url: "https://hashnode.com/posts/stop-wasting-queries-how-to-cancel-mysql-requests-when-the-client-disconnects/6811ca161d4f296c69a7da46"
---

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

Discussion

# [Stop Wasting Queries: How to Cancel MySQL Requests When the Client Disconnects](https://blog.tyszko.dev/stop-wasting-queries-how-to-cancel-mysql-requests-when-the-client-disconnects?utm_source=hashnode&utm_medium=feed)

Introduction In a high-traffic web application, many users may be clicking around at once. Imagine a user who requests a long list of items, then quickly navigates away before the server has finished fetching them from the database. By default, that ...

Apr 30, 2025 · 5 min read · blog.tyszko.dev  
Read the article

-   [#xhr](https://hashnode.com/tag/xhr)
-   [#rxjs](https://hashnode.com/tag/rxjs)
-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#databases](https://hashnode.com/tag/databases)

## Written by

[Patrick](https://hashnode.com/@zgaduj)

@zgaduj · Warsaw

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
