PEP 249 (database api) -- executemany() with iterable?

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Wed Oct 13 15:14:30 CEST 2010


On Wed, 13 Oct 2010 14:01:39 +1300, Lawrence D'Oliveiro wrote:

> In message <4cb4ba4e$0$1641$742ec2ed at news.sonic.net>, John Nagle wrote:
> 
>> In general, if you find yourself making millions of SQL database
>> requests in a loop, you're doing it wrong.
> 
> I’ve done this. Not millions, but certainly on the order of tens of
> thousands.

"I've done it" doesn't disprove that it is the wrong thing to do. It may 
simply mean that you too are doing it wrong.

I have no opinion either way, I'm just saying.



-- 
Steven



More information about the Python-list mailing list