I’m runing into Memory Error
Using python 2.6, pyodbc
The code loops through several Sql statements. Singleton run Ok, but the loops get stuck.
Sometimes Loop works ok.
for Sql in LoopList:
f = csr.execute(Sql)
LL = list(f)
The second element in loop crashes.
Sql:
Sql =""" SELECT * FROM group WHERE
C>10 AND M <0 AND S<0
AND TC >= 200 AND OC >=1000 and Penny =.01
ORDER BY MSlp
"""
The solution was to do sql looplist inside MySQL as Stored procedure, call from python. This eliminated the python error.
also use numpy for testing bytesize