[ZODB-Dev] Finding objects by attribute value?

Tim Peters tim at zope.com
Fri Jan 7 11:56:38 EST 2005


[Chris Bainbridge]
> I had a similar bandwidth problem and solved it by running a client on
> the server which connects to localhost, and then allowing only that
> client to carry out the heavy work (the code is the same, but does 'if
> hostname == something: connect_to_localhost ... if
> connected_to_localhost: do_stuff ...'). It helped, but would have been
> faster if I could've figured out how to get zodb to listen for client
> connections on a unix socket and tcp at the same time (is it possible?).

If by "zodb" you mean a ZEO server, no, a ZEO server binds to exactly one
address to listen for client connections.

While I've never done this, I imagine you could also start a second ZEO
server binding to a different address.  This would have to open the
FileStorage in read-only mode.



More information about the ZODB-Dev mailing list