Re: [Wonder-disc] ERXLongPrimaryKeyFactory (long primary keys)
Re: [Wonder-disc] ERXLongPrimaryKeyFactory (long primary keys)
- Subject: Re: [Wonder-disc] ERXLongPrimaryKeyFactory (long primary keys)
- From: Anjo Krank <email@hidden>
- Date: Tue, 11 Jul 2006 21:21:07 +0200
A little bit late, but better now than never:)
Am 30.06.2006 um 09:01 schrieb Anjo Krank:
Am 30.06.2006 um 08:51 schrieb Guido Neitzer:
Currently I'm working on a project where I really don't know how big
some tables in a database may become (some of them may become really
big), so I'm not sure whether I should go with integer primary keys
(32 Bit) and I'm also not sure whether to go with db created primary
keys (perhaps issues when using a multi master cluster).
So if I get some time, there´s some refactoring due here....
Frankly this class isn't well thought out to put it mildly. It's not
MT-Safe, not mutli-Instance safe, wastes a lot of PK space, doesn't
allow PK names other than "id" and on top of it, encodes the entity
and host on in the top bits, but the bottom bits. In short, it's an
accident waiting to happen.
And it´s the wrong approach anyway, as this thing should get hooked
into the DBC delegate, not some standalone class.
So unless someone really, really objects, I'm either gonna pull it or
at least regard it as fair game for refactoring (which might break it
completely).
Cheers, Anjo
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden