> The sortKeys only have to be valid over the course of one transaction, > right? I don't think so -- two different clients doing different things must aqcuire the locks in the same order, so the sort order must be global. Making the keys global is the easiest way to do that. --Guido van Rossum (home page: http://www.python.org/~guido/)