Using sqlite3 in Python, it seems to me that there is a maximum on the number of connection that can be established to different databases at the same time.
For example, I can connect to 1000 different databases:
cons = [sqlite3.connect(infile) for infile in infiles[:1000]]
But I cannot open
cons = [sqlite3.connect(infile) for infile in infiles[:1024]]
which gives sqlite3.OperatinError: unable to open database file on the databases that are above some threshold that seems to be around 1024.
Is there a way to increase this maximum to around, say 4096?