←back to thread

706 points janpio | 1 comments | | HN request time: 0.214s | source
Show context
NelsonMinar ◴[] No.45676467[source]
Be sure to see the team's whole list of Cursed Knowledge. https://immich.app/cursed-knowledge
replies(5): >>45676661 #>>45677766 #>>45677816 #>>45678252 #>>45679167 #
levkk ◴[] No.45676661[source]
The Postgres query parameters one is funny. 65k parameters is not enough for you?!
replies(2): >>45676824 #>>45677258 #
strken ◴[] No.45676824[source]
As it says, bulk inserts with large datasets can fail. Inserting a few thousand rows into a table with 30 columns will hit the limit. You might run into this if you were synchronising data between systems or running big batch jobs.

Sqlite used to have a limit of 999 query parameters, which was much easier to hit. It's now a roomy 32k.

replies(2): >>45676893 #>>45676985 #
1. evertedsphere ◴[] No.45676893[source]
COPY is often a usable alternative.