{
  "id": 22468294,
  "title": "Handling a shard-key lookup across two databases",
  "url": "https://urgent.news/2026/11/28/handling-a-shard-key-lookup-across-two-databases",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-28T23:16:32.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/rahulbsw/handling-a-shard-key-lookup-across-two-databases-p5m"
  },
  "original_language": null,
  "account": null,
  "summary": "DBProxy is a lightweight database proxy that supports both MySQL and PostgreSQL, with a focus on sharding and Redis-backed caching. The article discusses handling a shard-key lookup across two databases when executing an IN query with tenant IDs belonging to two database shards. DBProxy partitions the request into separate queries for each shard and allows the application to combine the results. In case of a shard failure, DBProxy buffers the results and checks metadata before returning rows, while also setting row, byte, and deadline limits to manage the cost of buffering. Additionally, DBProxy offers an optional Redis or Valkey read-through cache for MySQL, which is enabled per table and applies to eligible buffered, replica-eligible SELECT queries.",
  "summary_source": "urgent.news",
  "key_points": [],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}