aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Localization
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2026-06-21 22:49:46 -0400
committerJoshua M. Boniface <joshua@boniface.me>2026-06-21 23:03:45 -0400
commit069eb40ebfdca4030d0c87d56f4398f6f5d1b55e (patch)
tree9758a5de8281358d2915155402a0b8817ee52a98 /Emby.Server.Implementations/Localization
parent4e80648fd31e914be455525c39c6cacaeb8f4b67 (diff)
Fix too many SQL variables in DeleteItem for large batch deletes
The FixIncorrectOwnerIdRelationships migration deletes all duplicate items in a single DeleteItemsUnsafeFast -> DeleteItem(ids) call. Inside DeleteItem, the owned-extras lookup used a raw HashSet.Contains, which EF inlines as one SQL variable per id and overflows SQLite's variable limit on large libraries. Use WhereOneOrMany so the id set is bound as a single json_each parameter, like the rest of the method, making bulk deletes work for unlimited library sizes.
Diffstat (limited to 'Emby.Server.Implementations/Localization')
0 files changed, 0 insertions, 0 deletions