Hello Tibor, [...] > BTW, since you mentioned that your DB works a lot, you don't have to run > Python profiling in itself, you can concentrate on DB matters first. > > E.g. you can enable SQL logging temporarily by doing:
That was it! Somehow it my bibsched does not sleep, and it is doing one thousand queries per second: 1102 2013-02-28 12:56:56--> 1096 2013-02-28 12:56:57--> 1103 2013-02-28 12:56:58--> 1102 2013-02-28 12:56:59--> 1103 2013-02-28 12:57:00--> 1090 2013-02-28 12:57:01--> 1087 2013-02-28 12:57:02--> 1097 2013-02-28 12:57:03--> 1093 2013-02-28 12:57:04--> 1094 2013-02-28 12:57:05--> The queries are the 'SELECT id, etc' and 'UPDATED schTASK' of the script. I'll try to follow the if-then-else logic to see why it does not obey the CFG_BIBSCHED_REFRESHTIME value or maybe there is an exception that causes the logic to miss the time.sleep function. Ferran

