piggymouse: (umlactor)
[personal profile] piggymouse

С WTF'а. Коллеги оценят вторую реплику.

Mark: I'm a bit puzzled why the first line of the address for each customer is the primary key in the Customer's Table…
DeveloperI decided that was the most unique item for each entity.
Mark: So what happens when you get a customer that shares the same first line of the address?
Developer: That generates an error — the user then rings me up and I generate the customer record.
Mark: Ah — so you change the first line of the address, what to?
Developer: Well, I prefix the line with a numerical value — indicating the duplication number.
Mark: So… a new customer with the address of "1 Main Street" would be changed to "2 1 Main Street"?
Developer: Correct
Owner: Does it?
Developer: Er… Yes.
Owner: …
Owner: Well, that explains why most of our marketing and billing post is never delivered…

Date: 2005-12-28 05:58 pm (UTC)
From: [identity profile] igorsereda.livejournal.com
отлично :)
правда, противники суррогатных ключей могут найти какой-нибудь контрпример с овер-юзом всяческих id

Date: 2005-12-28 06:05 pm (UTC)
From: [identity profile] piggymouse.livejournal.com
Наверное, во мне говорит ментальность сотрудника большой компании (regardless of who I really am), но у меня обычно один из приоритетных критериев — облегчает ли инструмент совершение факапа.

Бизнес-ключи в 90% являются просто рецептом для факапа.

Date: 2005-12-28 06:27 pm (UTC)

Date: 2005-12-28 08:06 pm (UTC)
From: [identity profile] dair-spb.livejournal.com
Ну, это круто... А ссылаться на такую таблицу так же, по первой строке?.. О, прикольно...

Date: 2005-12-28 09:32 pm (UTC)
From: [identity profile] kinuski.livejournal.com
Я сталкивался с подобным очно.

Date: 2005-12-29 11:28 am (UTC)
From: [identity profile] piggymouse.livejournal.com
Эх. А я заочно.

Profile

piggymouse: (Default)
איש אי הכלבים

April 2011

S M T W T F S
     1 2
34 56 789
10 1112 13141516
17181920212223
24252627282930

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Mar. 21st, 2026 03:33 pm
Powered by Dreamwidth Studios