UPDATE Performance Regression in SQLite 3.42.0 Due to Subquery Materialization and Index Plan Changes
Understanding Query Plan Shifts in Subquery-Driven UPDATE Operations Between SQLite Versions 3.36.0 and 3.42.0 The core issue revolves around a significant performance regression observed in an UPDATE…FROM…WHERE query when migrating from SQLite 3.36.0 to 3.42.0. The query leverages a window function (LEAD) within a subquery to compute values for updating columns in the NewItem table….