From 49b0154861329c5d105cd734f745f2aedca64d77 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Wed, 5 Aug 2026 13:20:49 +0000 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=20Bolt:=20Optimize=20get=5Fdiscovered?= =?UTF-8?q?=5Ffiles=20query?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refactored `get_discovered_files` to use a Common Table Expression (CTE) for applying limit and offset on the base table `files` before performing expensive left joins with `enrichment_jobs` and `library_folders`. Co-authored-by: jspann21 <179991454+jspann21@users.noreply.github.com>