import httplib2 httplib2.debuglevel = 1
will show each http request and response, so that you can see what’s taking time.
3. Fetch objects only once:
Don’t do this:
if bug.person is not None: print bug.person.name
p = bug.person if p is not None: print p.name
In the first case, the client may fetch the Person object twice. (We may fix this in future.)