Home / Companies / Yugabyte / Blog / Post Details
Content Deep Dive

How to Handle Runaway Queries in a Distributed SQL Database

Blog post from Yugabyte

Post Details
Company
Date Published
Author
Rahul Desirazu
Word Count
1,326
Company Posts That Month
11
Language
English
Hacker News Points
-
Post removed?
No
Summary

The problem of runaway queries in distributed SQL databases arises when queries consume excessive I/O and CPU resources, impacting other clients even after the query has timed out. In YugabyteDB, this issue can be caused by a SELECT * command without a LIMIT clause executing on multiple tablets, leading to high disk utilization and CPU usage. To mitigate this problem, the YQL timeout is propagated to DocDB through an RPC, where it is converted to a deadline, allowing the iterator to build responses while preventing resource monopolization. This solution ensures that both YQL and DocDB have matching deadlines, reducing the impact of runaway queries on the cluster's performance.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Kubernetes 1 604 96 28 -17%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.