Be sure to see the team's whole list of Cursed Knowledge. https://immich.app/cursed-knowledge
replies(5):
Sqlite used to have a limit of 999 query parameters, which was much easier to hit. It's now a roomy 32k.
is even funnier :D
We probably should have been partitioning the data instead of inserting it twice, but I never got around to fixing that.
COPY is likely a better option if you have access to the host, or provider-specific extensions like aws_s3 if you have those. I'm sure a data engineer would be able to suggest a better ETL architecture than "shove everything into postgres", too.