It would almost certainly be considerably quicker to query the names from the DB in bulk and build a hash in perl. And then just process your file against the hash.
A 10 million key hash should take 1.5 GB. And looking up 2 million keys against a 10 million key hash takes around 5 seconds.
In reply to Re: PSQL and many queries
by BrowserUk
in thread PSQL and many queries
by citycrew
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |