On Tuesday 26 February 2002 12:55 pm, Geoffrey Talvola wrote:
> Chuck Esterbrook wrote:
> > Obj refs in MK are 64 bit values where the first 32 are a
> > class id and
> > the last 32 are an object id. These are pretty much necessary for
> > general object references (you need the class id to know what
> > table to
> > fetch the object from).
> >
> > I plan on allowing some kind of "simple reference" type or
> > option that
> > would allow for only storing the object id, in those cases where
> > you know there is only one class.
>
> On a related note, how about splitting the 64-bit ID into 2 32-bit
> fields -- an object ID and a class ID?
>
> That would make debugging easier, since by looking in the db you
> could see the "real" values for the object ID and class ID without
> having to split the 64-bit number apart.  It would also make it
> possible to use SQL joins between MK tables outside of MK (although
> you'd have to take the class ID into account with a WHERE clause).
>
> - Geoff

I agree. That would be nice in general and it would eliminate the need 
for the "simple reference" option I described.

Don't know when I'll get to it. Patches welcome.  :-)


On a related note to Erwin's original problem, it was caused by an 
alpha version of MySQLdb, not by MiddleKit.

-Chuck

_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to