pkundurthy/uwpyKepler — comment on commit b75d844436793910cf41461671fa5f4bb5c04fff
File:  line 0
By johnm26:

I tried these suggestions and the script still seems to run at about the same pace. Here's an idea I've had but I'm not sure about the mysql syntax...
sg = eval(KIDlistfile[2:5])
skycall = 'select distinct KEPLERID from\
object where SKYGROUP = %s and LCFLAG = 0' % (sg)
cursor.execute(skycall)
results = cursor.fetchall()

If I could somehow get a command like this to work, the script would only have to access the database twice per skygroup instead of twice per KID.