Commit 14c4a20
Fix too-many-SQL-variables crash on Collection page completeness map
- get_collection_completeness_map's collected_item_ids() passed the
full episode/season/show id list as SQL bind params, exceeding
SQLite's 999-variable limit for large libraries
- Batch the lookup into chunks of 500 ids and union the results
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent cbc7d0a commit 14c4a20
1 file changed
Lines changed: 11 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
940 | 940 | | |
941 | 941 | | |
942 | 942 | | |
943 | | - | |
944 | | - | |
945 | | - | |
946 | | - | |
947 | | - | |
948 | | - | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
949 | 954 | | |
950 | 955 | | |
951 | 956 | | |
| |||
0 commit comments