[Nitro] Og reloaded, part 2, coming in 0.19.0

Michael Neumann mneumann at ntecs.de
Sun Jun 5 08:07:34 EDT 2005

Am Sunday 05 June 2005 09:16 schrieb George Moschovitis:
> > Of course it can be implemented differently, e.g.
> > storing the class/table name together with the oid attribute (this has
> > the advantage that it doesn't break ordered sequences).
> hm, seems I am right, this looks like STI, as I said this is already
> in for 0.19.0 and works orthogonally to the other features :)
> BTW, the current implementation stores the class name along with the
> pk, I am wondering if storing a hash of the name is a better solution,
> any comments?

Or you create an intermediate table called _og_classes, which defines a 
mapping from classname to a unique id (the pk of the table ;-). This would 
save memory and is probably faster (?) than using classnames directly.



More information about the Nitro-general mailing list