Subject | RE: [firebird-support] Design Question: Storing and using generic text "tags" |
---|---|
Author | Jarrod Hollingworth |
Post date | 2009-06-26T22:50:20Z |
Hi Helen,
There's at least a small window where select existing tag finds nothing and
commit of first before commit of second causes second to fail.
Regards,
Jarrod Hollingworth
Complete Time Tracking
http://www.complete-time-tracking.com/
>>> constraint un_tags_name unique(name)Two separate transactions, second fails on commit, then need to retry.
>> In a multi-user environment I'll have to be prepared for this
>> to fail (two users added the same new tag at the same time).
>
> Ummm, fail? The tag only has to be entered once. If it's there
> already, it doesn't need to be added: an exception will take care
> of it.
There's at least a small window where select existing tag finds nothing and
commit of first before commit of second causes second to fail.
Regards,
Jarrod Hollingworth
Complete Time Tracking
http://www.complete-time-tracking.com/