[ZODB-Dev] Advice On ZODB
Christian Reis
kiko@async.com.br
Fri, 24 Jan 2003 13:38:05 -0200
On Fri, Jan 24, 2003 at 10:19:12AM -0500, Chris McDonough wrote:
> http://www.zope.org/Members/mcdonc/HowTos/gainenlightenment
>
> ZODB is not table-driven like a relational database. It's an object
> database, so you should try to create objects that represent your
> problem domain and store them in ZODB. So for instance if the data
> you're trying to store is information about internet hosts, you might
> have a Host class:
[snip]
> root['host1'] = Host('192.168.0.1')
> root['host2'] = Host('192.168.0.2')
Sure, but now let's assume he wants to query all hosts by IP block,
hostname or CIDR, then what? :-) A catalog is a very relevant issue for
people keeping collections of objects, specially if you have more than
one kind and the root feels cramped.
Take care,
--
Christian Reis, Senior Engineer, Async Open Source, Brazil.
http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL