Updates: Status: ReviewedNeedsCommit Comment #4 on issue 99 by kmdaily: SQLTable.itervalues() can be interrupted by other queries http://code.google.com/p/pygr/issues/detail?id=99 I tested this, and the solution works fine.