Hash views with multiple keys?
[email protected] Sun, 8 Jan 2006 17:28:59 -0500
| Newsgroups | gmane.comp.db.metakit |
|---|---|
| Message-ID | <OFC85DB9D6.91D55547-ON852570F0.007AA327-852570F0.007B8145@gsk.com> |
Can someone provide an example (preferably in Python) of how a hash view
with multiple keys works? I see how to create one (and have), but how do
you actually *use* it? That is, how do you specify the muti-property key
to a method like view.find()?
What I want to use this for is fast access to a two-column table (view) in
which (a) a value may (will) appear multiple times in each column, but (b)
a col1/col2 pair will appear only once in the entire table.
If my columns (properties) are, say, 'Child' and 'Parent', and I've
defined a has view with something like
view = view.hash(hashvw, 2)
how do I find a particular Child/Parent pair (that will be unique in the
table)?
------------------------------
Gary H. Merrill, Principal Scientist
Analysis Applications, Research, and Technologies
GlaxoSmithKline Research and Development
Research Triangle Park, NC
919.483.8456
_____________________________________________
Metakit mailing list - [email protected]
http://www.equi4.com/mailman/listinfo/metakit