mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-11 02:46:16 -08:00
The inner loop in reorderGlobalFavorites() rebuilt the same update().set().where() AST per row — up to thousands of times for large favorite lists. Hoist a prepared statement using sql.placeholder() so Drizzle generates the SQL string once and SQLite caches the parsed plan. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Entire-Checkpoint: 3d6901072049