Guillaume Cottenceau schrieb:

Can you show us the code? Difficult to make one's mind without
more information.

I don't know the UUID thing but what may make a difference would
be a little performance penalty (inserting a value instead of
letting postgres handle the SERIAL its way). But it should be
minimal, I think.

Also, let's not forget to document the importance of creating an
index on the UUID column, if we're going to select by UUID, which
I guess will be the case.

the code is in gwlib/gw_uuid.[ch].

Alex did a lot for research at the time he introduced the UUID implementation as a message ID for the transport layers in Kannel. And he did a great work to explain the necessary parts at that time. From my perspective I trust his research and words, even while I never tried to "understand" the UUID heuristics in detail by the code. (I admit I reviewed some other projects and references for UUID and have been simply convinced.)

Stipe

-------------------------------------------------------------------
Kölner Landstrasse 419
40589 Düsseldorf, NRW, Germany

tolj.org system architecture      Kannel Software Foundation (KSF)
http://www.tolj.org/              http://www.kannel.org/

mailto:st_{at}_tolj.org           mailto:stolj_{at}_kannel.org
-------------------------------------------------------------------

Reply via email to