[dev] id and UID
Luis Felipe Marzagao/Andamentos
lfbm.andamentos at gmail.com
Thu Feb 3 21:58:27 UTC 2011
Em 03/02/11 11:01, Michael J Rubinsky escreveu:
>
> --
> Mike
> Sent from my iPad...
>
> On Feb 2, 2011, at 11:52 PM, Luis Felipe Marzagao/Andamentos<lfbm.andamentos at gmail.com> wrote:
>
>> Hello:
>>
>> I've noticed many horde apps (nag, mnemo, turba etc.) have id and uid fileds in their database schema.
>> I'm trying to develop an in-house module and I'm trying to follow horde apps style and good practices so maybe my app could be added to horde in the future.
>>
>> I'd like to understand why there's a need for both id and uid fields, since at first glance (at least for a beginner) the id field already seems pretty unique. Any pointers would help.
> In general, the I'd field is a locally unique I'd, the uid field is globally unique. For example, in Kronolith, when you are invited to and accept an event, the entry in the database that represents YOUR copy of the event would have the same uid value (since they both refer to the same event) as the organizer's copy, but the id entries would be different.
>
Thanks a lot. Your example made things clear.
> HTH,
> Mike
>
>> Thanks a lot.
>> Luis Felipe
>> --
>> Horde developers mailing list
>> Frequently Asked Questions: http://horde.org/faq/
>> To unsubscribe, mail: dev-unsubscribe at lists.horde.org
More information about the dev
mailing list