metaclass: (Default)
metaclass ([personal profile] metaclass) wrote2013-04-03 01:06 am

В Советской Белоруссии SQL разжигает айседа

http://theiced.livejournal.com/238346.html
Собственно, про кобол я не знаю, на дельфи пишу уже 15 лет и никак избавится от него не могу (слишком много легаси кода), а вот про SQL я с ним не согласен.
Сам по себе SQL очень хорошо подходит для генерации отчетов. Если отчет сводится к фильтрации-сортировке-группировке множеств - идеально. С рекурсивными CTE - еще и деревья можно обрабатывать, не особо включая мозг. Всунув поверх этого минимальных размеров постобработку на какой-нибудь функциональщине, можно сделать почти любой отчет, пришедший в голову свихнувшимся на Excel выпускникам нархоза, работающим в минстате, минфине и МНС.

Но когда доходит до процедурных расширений, API между СУБД и клиентскими приложениями или каких-нибудь вещей, которые забыли вовремя добавить в стандарт - начинается полная, немыслимая жопа.
Например, проклятая тема - генерация автоинкрементных ключей и возвращение значений автоматически заполненных полей. Кто во что горазд - identity, генераторы, sequence, функции (в каждой СУБД названные по разному), returning, заебы на тему "вызывать в той же транзакции и сессии" и прочая и прочая. Про вариации на тему "вернуть поле, которое заполняется автоматически, но не является ключом/identity" лучше даже не думать.
Неудивительно, что люди при первой же возможности сбегают в ORM (которые являются уже второй производной от всего этого маразма и несут на себе его неизгладимый след).

[identity profile] fraks-nsk.livejournal.com 2013-04-03 01:04 am (UTC)(link)
Я так понимаю что люди сбежавшие на ОРМ обнаруживают что кроме потери нормальной работы с нативным серверным SQL позволяющим юзать сервер БД не как просто помойку записей они подсаживаются на этот самый ОРМ. Т.е. шило на мыло.

[identity profile] norguhtar.livejournal.com 2013-04-03 01:57 am (UTC)(link)
ORM просто избавляет от нудного ручного труда по трансляции данных программы в данные СУБД. Причем приличный ORM позволяет вмешиваться руками в создаваемый запрос, а так же вообще нагло сходить нативным SQL в базу. В результате во многих случаях оптимизация на ORM сводится добавить тут хинты или сделать тут вместо генеримого запроса, свой ручной. Просто на ORM надо идти предварительно плотно поработав с РСУБД и четким пониманием что эта хрень делает. Иначе полный ад, так-как от разработчика эта штука скрывает РСУБД весьма неплохо.

[identity profile] theiced.livejournal.com 2013-04-03 02:29 am (UTC)(link)
увы да - ибо рсубд тотальное говно и надо понимать что в каждом конкретном случае делает орм. ну или хотя бы уметь разобраться почему перфоманс ушёл фхуй и объяснить орму что он не прав.

[identity profile] norguhtar.livejournal.com 2013-04-03 02:37 am (UTC)(link)
Текущая абстракция хуле. Но увы в данный момент ничего лучше РСУБД для общих случаев хранить данные не придумано.

[identity profile] theiced.livejournal.com 2013-04-03 02:42 am (UTC)(link)
так хуй с ними с рсубд. сам сикль ГОВНО. ну вон то что М пишет - только в 2008ом году indentity попало в стандарт. а в базах мало того что в каждой свой костыль, так ещё и "стандартный" будет... лет через 5-6.

[identity profile] norguhtar.livejournal.com 2013-04-03 03:01 am (UTC)(link)
Это вопрос стандартизации, вон возьмем html. Пока другие чуваки не сказали вы заебали мы сделаем свой стандарт, эти w3c вату катать собирались до 2015 года. А в случае SQL со стандартизацией а так же с лидерами все плохо. Ну нету в РСУБД своего webkit.

[identity profile] theiced.livejournal.com 2013-04-03 03:10 am (UTC)(link)
ооо. хтмль же. делалось учёными для учёных. получился пиздец непредставимой величины. взять любой фэйл - там всегда пидорасы для хипстеров. или хипстеры для сотрудников нии гит. обычно с коммитетами, спецификациями на 2000 страниц (или вообще безо всякой документации) и обязательной поддержкой латыни и беларуского, марсианских таймзон и без возможности делать вещи нужные каждый день. а там где всё заебись - делали практикующие программисты чуть более чем всегда.

[identity profile] sbj-ss.livejournal.com 2013-04-03 03:17 am (UTC)(link)
Да, с поддержкой латыни, белорусского и тамильского. И с тайм-зонами для суток, в которых не 24 часа. Иначе те же самые пидорасы с хипстерами это введут в ни с чем не совместимой версии максимально ублюдочным способом и сделают стандартом де-факто. В SQL насмотрелись уже.

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 03:33 (UTC) - Expand

(no subject)

[identity profile] metaclass.livejournal.com - 2013-04-03 06:18 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 06:46 (UTC) - Expand

(no subject)

[identity profile] thedeemon.livejournal.com - 2013-04-03 07:17 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 03:34 (UTC) - Expand

[identity profile] fraks-nsk.livejournal.com 2013-04-03 03:30 am (UTC)(link)
Это ОРМ - тотальное гавно ибо
- собственно данные хранить не умеет
- все равно для адекватной эффективности приходится смотреть на работу с СУБД.

Итого - ОРМ всего-лишь ненужная прокладка.

Утрированно.

[identity profile] vp.livejournal.com 2013-04-03 04:21 am (UTC)(link)
>Итого - ОРМ всего-лишь ненужная прокладка.

Я как бы не согласен совсем. Эффективность адекватна, если уметь этих кошек готовить. Например, Hibernate генерирует при правильном конфиге именно те запросы, которые бы написал сам.

[identity profile] fraks-nsk.livejournal.com 2013-04-03 05:03 am (UTC)(link)
А я не только про запросы, я про их количество и таскание ненужных данных во имя заполнения полей

[identity profile] norguhtar.livejournal.com 2013-04-03 05:11 am (UTC)(link)
Ну извиняйте, но людям нужны более простые интерфейсы. А то так выяснится что во имя передвижения мы вместо того чтобы ходить ногами ездим на весьма сложном с технической стороны автомобиле.

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 05:25 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 05:34 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 05:36 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 05:37 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 06:00 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 06:09 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 06:13 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 06:21 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 06:31 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 06:36 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 06:53 (UTC) - Expand

(no subject)

[identity profile] metaclass.livejournal.com - 2013-04-03 06:59 (UTC) - Expand

(no subject)

[identity profile] theiced.livejournal.com - 2013-04-03 07:06 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 07:08 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 07:16 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 07:18 (UTC) - Expand

(no subject)

[identity profile] vp.livejournal.com - 2013-04-03 09:32 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 09:48 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 13:39 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 13:43 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 15:03 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 15:22 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 15:35 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 15:43 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 15:57 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 16:09 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 16:18 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 17:19 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 17:46 (UTC) - Expand

...

[identity profile] norguhtar.livejournal.com - 2013-04-04 02:27 (UTC) - Expand

...

[identity profile] fraks-nsk.livejournal.com - 2013-04-04 02:46 (UTC) - Expand

...

[identity profile] norguhtar.livejournal.com - 2013-04-04 03:08 (UTC) - Expand

...

[identity profile] fraks-nsk.livejournal.com - 2013-04-04 03:21 (UTC) - Expand

...

[identity profile] norguhtar.livejournal.com - 2013-04-04 03:30 (UTC) - Expand

...

[identity profile] fraks-nsk.livejournal.com - 2013-04-04 04:13 (UTC) - Expand

...

[identity profile] norguhtar.livejournal.com - 2013-04-04 04:36 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 16:04 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 16:20 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 16:31 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 17:29 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 17:47 (UTC) - Expand

...

[identity profile] norguhtar.livejournal.com - 2013-04-04 02:28 (UTC) - Expand

...

[identity profile] fraks-nsk.livejournal.com - 2013-04-04 02:48 (UTC) - Expand

...

[identity profile] norguhtar.livejournal.com - 2013-04-04 03:09 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 06:43 (UTC) - Expand

(no subject)

[identity profile] vp.livejournal.com - 2013-04-03 07:09 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 07:18 (UTC) - Expand

(no subject)

[identity profile] vp.livejournal.com - 2013-04-03 09:31 (UTC) - Expand

(no subject)

[identity profile] theiced.livejournal.com - 2013-04-03 07:23 (UTC) - Expand

(no subject)

[identity profile] vp.livejournal.com - 2013-04-03 09:38 (UTC) - Expand

(no subject)

[identity profile] theiced.livejournal.com - 2013-04-04 02:13 (UTC) - Expand

(no subject)

[identity profile] woldemar kuchelbeker - 2013-04-03 09:48 (UTC) - Expand

(no subject)

[identity profile] jakobz.livejournal.com - 2013-04-03 20:19 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 15:05 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 15:45 (UTC) - Expand

(no subject)

[identity profile] prepor.livejournal.com - 2013-04-03 19:09 (UTC) - Expand

(no subject)

[identity profile] theiced.livejournal.com - 2013-04-03 19:15 (UTC) - Expand

(no subject)

[identity profile] prepor.livejournal.com - 2013-04-03 19:17 (UTC) - Expand

(no subject)

[identity profile] vp.livejournal.com - 2013-04-04 07:01 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-04 08:17 (UTC) - Expand

(no subject)

[identity profile] vp.livejournal.com - 2013-04-04 08:37 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-04 08:45 (UTC) - Expand

(no subject)

[identity profile] berezovsky.livejournal.com - 2013-04-04 08:48 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-04 08:53 (UTC) - Expand

(no subject)

[identity profile] vp.livejournal.com - 2013-04-04 09:04 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-05 01:16 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-05 09:11 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-04 08:22 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 06:19 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 06:25 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 06:57 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 07:13 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 07:20 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 07:22 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 07:22 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 07:25 (UTC) - Expand

(no subject)

[identity profile] metaclass.livejournal.com - 2013-04-03 08:34 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 08:45 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 13:46 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 13:48 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 15:16 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 15:25 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 15:48 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 15:54 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 16:21 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 17:23 (UTC) - Expand

...

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 17:49 (UTC) - Expand

...

[identity profile] norguhtar.livejournal.com - 2013-04-03 17:54 (UTC) - Expand

(no subject)

[identity profile] theiced.livejournal.com - 2013-04-03 19:10 (UTC) - Expand

...

[identity profile] anonim-legion.livejournal.com - 2013-04-03 19:31 (UTC) - Expand

...

[identity profile] theiced.livejournal.com - 2013-04-03 19:34 (UTC) - Expand

...

[identity profile] theiced.livejournal.com - 2013-04-03 19:35 (UTC) - Expand

...

[identity profile] anonim-legion.livejournal.com - 2013-04-03 19:38 (UTC) - Expand

...

[identity profile] theiced.livejournal.com - 2013-04-04 00:56 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-04 00:31 (UTC) - Expand

...

[identity profile] fraks-nsk.livejournal.com - 2013-04-04 01:43 (UTC) - Expand

...

[identity profile] theiced.livejournal.com - 2013-04-04 02:08 (UTC) - Expand

...

[identity profile] norguhtar.livejournal.com - 2013-04-04 02:24 (UTC) - Expand

...

[identity profile] fraks-nsk.livejournal.com - 2013-04-04 02:43 (UTC) - Expand

...

[identity profile] norguhtar.livejournal.com - 2013-04-04 03:07 (UTC) - Expand

...

[identity profile] fraks-nsk.livejournal.com - 2013-04-04 03:17 (UTC) - Expand

...

[identity profile] norguhtar.livejournal.com - 2013-04-04 03:29 (UTC) - Expand

...

[identity profile] fraks-nsk.livejournal.com - 2013-04-04 04:08 (UTC) - Expand

...

[identity profile] norguhtar.livejournal.com - 2013-04-04 04:34 (UTC) - Expand

...

[identity profile] fraks-nsk.livejournal.com - 2013-04-04 04:55 (UTC) - Expand

...

[identity profile] norguhtar.livejournal.com - 2013-04-04 05:47 (UTC) - Expand

...

[identity profile] metaclass.livejournal.com - 2013-04-04 05:59 (UTC) - Expand

...

[identity profile] norguhtar.livejournal.com - 2013-04-04 06:01 (UTC) - Expand

...

[identity profile] evil-invader.livejournal.com - 2013-04-04 06:41 (UTC) - Expand

...

[identity profile] metaclass.livejournal.com - 2013-04-04 06:46 (UTC) - Expand

...

[identity profile] evil-invader.livejournal.com - 2013-04-04 07:24 (UTC) - Expand

...

[identity profile] metaclass.livejournal.com - 2013-04-04 07:27 (UTC) - Expand

...

[identity profile] fraks-nsk.livejournal.com - 2013-04-04 08:34 (UTC) - Expand

...

[identity profile] berezovsky.livejournal.com - 2013-04-04 08:35 (UTC) - Expand

...

[identity profile] fraks-nsk.livejournal.com - 2013-04-04 08:42 (UTC) - Expand

...

[identity profile] norguhtar.livejournal.com - 2013-04-04 08:42 (UTC) - Expand

...

[identity profile] fraks-nsk.livejournal.com - 2013-04-04 08:47 (UTC) - Expand

...

[identity profile] norguhtar.livejournal.com - 2013-04-04 08:56 (UTC) - Expand

...

[identity profile] fraks-nsk.livejournal.com - 2013-04-04 09:03 (UTC) - Expand

...

[identity profile] norguhtar.livejournal.com - 2013-04-04 09:18 (UTC) - Expand

...

[identity profile] fraks-nsk.livejournal.com - 2013-04-04 05:05 (UTC) - Expand

...

[identity profile] norguhtar.livejournal.com - 2013-04-04 05:18 (UTC) - Expand

...

[identity profile] metaclass.livejournal.com - 2013-04-04 05:52 (UTC) - Expand

...

[identity profile] norguhtar.livejournal.com - 2013-04-04 05:54 (UTC) - Expand

...

[identity profile] anonim-legion.livejournal.com - 2013-04-04 08:02 (UTC) - Expand

...

[identity profile] norguhtar.livejournal.com - 2013-04-04 08:08 (UTC) - Expand

...

[identity profile] anonim-legion.livejournal.com - 2013-04-04 08:19 (UTC) - Expand

...

[identity profile] norguhtar.livejournal.com - 2013-04-04 08:22 (UTC) - Expand

...

[identity profile] Дмитрий Васильев - 2013-04-04 08:18 (UTC) - Expand

...

[identity profile] norguhtar.livejournal.com - 2013-04-04 08:23 (UTC) - Expand

...

[identity profile] fraks-nsk.livejournal.com - 2013-04-04 08:36 (UTC) - Expand

...

[identity profile] berezovsky.livejournal.com - 2013-04-04 08:37 (UTC) - Expand

...

[identity profile] norguhtar.livejournal.com - 2013-04-04 08:40 (UTC) - Expand

...

[identity profile] evil-invader.livejournal.com - 2013-04-04 11:53 (UTC) - Expand

...

[identity profile] anonim-legion.livejournal.com - 2013-04-04 07:37 (UTC) - Expand

...

[identity profile] norguhtar.livejournal.com - 2013-04-04 08:10 (UTC) - Expand

...

[identity profile] anonim-legion.livejournal.com - 2013-04-04 08:17 (UTC) - Expand

...

[identity profile] norguhtar.livejournal.com - 2013-04-04 08:21 (UTC) - Expand

...

[identity profile] anonim-legion.livejournal.com - 2013-04-04 07:41 (UTC) - Expand

...

[identity profile] norguhtar.livejournal.com - 2013-04-04 08:00 (UTC) - Expand

...

[identity profile] fraks-nsk.livejournal.com - 2013-04-04 08:38 (UTC) - Expand

...

[identity profile] norguhtar.livejournal.com - 2013-04-04 08:46 (UTC) - Expand

...

[identity profile] fraks-nsk.livejournal.com - 2013-04-04 08:52 (UTC) - Expand

...

[identity profile] norguhtar.livejournal.com - 2013-04-04 08:54 (UTC) - Expand

...

[identity profile] fraks-nsk.livejournal.com - 2013-04-04 09:01 (UTC) - Expand

...

[identity profile] norguhtar.livejournal.com - 2013-04-04 09:03 (UTC) - Expand

...

[identity profile] fraks-nsk.livejournal.com - 2013-04-04 09:04 (UTC) - Expand

...

[identity profile] anonim-legion.livejournal.com - 2013-04-04 07:47 (UTC) - Expand

...

[identity profile] norguhtar.livejournal.com - 2013-04-04 08:06 (UTC) - Expand

...

[identity profile] anonim-legion.livejournal.com - 2013-04-04 08:13 (UTC) - Expand

...

[identity profile] norguhtar.livejournal.com - 2013-04-04 08:19 (UTC) - Expand

...

[identity profile] anonim-legion.livejournal.com - 2013-04-04 08:22 (UTC) - Expand

...

[identity profile] norguhtar.livejournal.com - 2013-04-04 08:25 (UTC) - Expand

(no subject)

[identity profile] prepor.livejournal.com - 2013-04-03 19:35 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-04 00:23 (UTC) - Expand

(no subject)

[identity profile] prepor.livejournal.com - 2013-04-04 09:03 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-04 09:15 (UTC) - Expand

(no subject)

[identity profile] metaclass.livejournal.com - 2013-04-03 06:27 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 06:28 (UTC) - Expand

(no subject)

[identity profile] metaclass.livejournal.com - 2013-04-03 06:52 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 07:04 (UTC) - Expand

(no subject)

[identity profile] nivanych.livejournal.com - 2013-04-03 17:47 (UTC) - Expand

(no subject)

[identity profile] metaclass.livejournal.com - 2013-04-03 19:11 (UTC) - Expand

(no subject)

[identity profile] theaspect.livejournal.com - 2013-04-05 06:42 (UTC) - Expand

(no subject)

[identity profile] theiced.livejournal.com - 2013-04-03 06:51 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 06:10 (UTC) - Expand

(no subject)

[identity profile] vp.livejournal.com - 2013-04-03 07:02 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 07:28 (UTC) - Expand

(no subject)

[identity profile] henu3detb.livejournal.com - 2013-04-03 11:35 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 13:49 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 13:53 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 17:12 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 17:28 (UTC) - Expand

(no subject)

[identity profile] metaclass.livejournal.com - 2013-04-03 17:38 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 17:52 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-04 00:51 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-04 00:55 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-04 01:13 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-04 02:15 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-04 02:18 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-04 02:31 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-04 02:50 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-04 03:11 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-04 03:25 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-04 03:35 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-04 04:21 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-04 04:44 (UTC) - Expand

...

[identity profile] metaclass.livejournal.com - 2013-04-04 05:56 (UTC) - Expand

...

[identity profile] norguhtar.livejournal.com - 2013-04-04 06:01 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-04 02:55 (UTC) - Expand

(no subject)

[personal profile] develop7 - 2013-04-04 09:19 (UTC) - Expand

(no subject)

[identity profile] berezovsky.livejournal.com - 2013-04-04 09:21 (UTC) - Expand

(no subject)

[personal profile] develop7 - 2013-04-04 12:42 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-05 01:18 (UTC) - Expand

(no subject)

[personal profile] develop7 - 2013-04-07 17:48 (UTC) - Expand

...

[identity profile] fraks-nsk.livejournal.com - 2013-04-08 01:12 (UTC) - Expand
(deleted comment)

(no subject)

[identity profile] metaclass.livejournal.com - 2013-04-07 06:29 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-07 12:45 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 18:01 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 18:15 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 18:22 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-04 00:22 (UTC) - Expand

(no subject)

[identity profile] theiced.livejournal.com - 2013-04-03 18:06 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 18:22 (UTC) - Expand

(no subject)

[identity profile] metaclass.livejournal.com - 2013-04-03 18:26 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 18:39 (UTC) - Expand

(no subject)

[identity profile] theiced.livejournal.com - 2013-04-03 18:48 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-04 02:32 (UTC) - Expand

(no subject)

[identity profile] theiced.livejournal.com - 2013-04-04 02:34 (UTC) - Expand

(no subject)

[identity profile] metaclass.livejournal.com - 2013-04-04 05:46 (UTC) - Expand

[identity profile] norguhtar.livejournal.com 2013-04-03 05:24 am (UTC)(link)
Ну извиняйте, но людям нужны более простые интерфейсы. А то так выяснится что во имя передвижения мы вместо того чтобы ходить ногами ездим на весьма сложном с технической стороны автомобиле.

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 05:34 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 05:39 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 05:46 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 05:58 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 06:04 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 06:10 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 06:22 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 06:27 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 06:45 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 06:49 (UTC) - Expand

(no subject)

[identity profile] theiced.livejournal.com - 2013-04-03 07:09 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 07:17 (UTC) - Expand

(no subject)

[identity profile] theiced.livejournal.com - 2013-04-03 07:25 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 06:24 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 06:31 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 06:41 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 06:47 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 07:00 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 07:14 (UTC) - Expand

(no subject)

[identity profile] metaclass.livejournal.com - 2013-04-03 06:54 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 07:11 (UTC) - Expand

(no subject)

[identity profile] metaclass.livejournal.com - 2013-04-03 07:21 (UTC) - Expand

(no subject)

[identity profile] metaclass.livejournal.com - 2013-04-03 20:18 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 13:53 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 13:57 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 15:28 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 15:33 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 16:09 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 16:14 (UTC) - Expand

[identity profile] vp.livejournal.com 2013-04-03 06:51 am (UTC)(link)
Давайте определимся с целями и задачами, а то так далеко зайдем.
Цель - не "сгенерить по имеющимся классам какую-то базу и какой-то ДАО". Получится херня.
Должна нормально вдумчиво проектироваться база, под нее писаться на ОРМе прослойка. Цель прослойки - упрощение работы с базой и простота будушего рефакторинга. Но мозг это не отменяет, и то, что он генерирует, нужно смотреть глазами.

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 07:03 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 15:59 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 16:27 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 17:21 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 18:02 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 18:09 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 18:03 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 18:08 (UTC) - Expand

(no subject)

[identity profile] metaclass.livejournal.com - 2013-04-03 18:17 (UTC) - Expand

(no subject)

[identity profile] metaclass.livejournal.com - 2013-04-03 20:41 (UTC) - Expand

(no subject)

[identity profile] metaclass.livejournal.com - 2013-04-03 20:46 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-04 00:21 (UTC) - Expand

(no subject)

[identity profile] vp.livejournal.com - 2013-04-03 17:20 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 17:24 (UTC) - Expand

(no subject)

[identity profile] vp.livejournal.com - 2013-04-03 17:32 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 17:37 (UTC) - Expand

[identity profile] fraks-nsk.livejournal.com 2013-04-03 05:33 am (UTC)(link)
гибернейт сгенерирует только простые запросы которые подразумевают что БД это тупое хранилище.
Нередко гораздо эффективней написать процедуру или execute block с выполнением кода на сервере чем тащить это на клиента и там распихивать по объектам ОРМ и уже по ним елозить, как когда-то по DBF табличкам. Да, так и при ОРМ можно сделать, но он тут будет только мешать.

[identity profile] veremeenko-alex.livejournal.com 2013-04-03 06:46 am (UTC)(link)
Хранимки еще большее зло. Логика растекается по программе, базе данных, UDF.
Рефакторинг становится анальной карой.

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 06:58 (UTC) - Expand

[identity profile] vp.livejournal.com 2013-04-03 07:04 am (UTC)(link)
Безусловно, это не золотой костыль. Потому мозг все равно нужно включать :)

[identity profile] metaclass.livejournal.com 2013-04-03 06:23 am (UTC)(link)
Не факт, я свои запросы обычно хинтами перепиливаю, иначе оптимизатор буянит.

[identity profile] nivanych.livejournal.com 2013-04-03 05:49 pm (UTC)(link)
Поделитесь, как ви на поцгресе запросы обычно хинтами перепиливаете?

(no subject)

[identity profile] metaclass.livejournal.com - 2013-04-03 18:04 (UTC) - Expand

[identity profile] darkdrip.livejournal.com 2013-04-03 04:21 am (UTC)(link)
всё блять. буду писать сайтики на mod_plsql. нахуй эти прокладки нужны?

[identity profile] norguhtar.livejournal.com 2013-04-03 04:50 am (UTC)(link)
А какие варианты? Закат солнца в ручную? Нет спасибо, я лучше с ORM поработаю.

[identity profile] fraks-nsk.livejournal.com 2013-04-03 05:02 am (UTC)(link)
ОРМ - это закат солнца вручную 1,5-2 раза.

[identity profile] norguhtar.livejournal.com 2013-04-03 05:03 am (UTC)(link)
Да ладно? Может поделитесь как надо тогда делать? Мне вот правда интересно.

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 05:06 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 05:09 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 05:29 (UTC) - Expand

(no subject)

[identity profile] norguhtar.livejournal.com - 2013-04-03 05:36 (UTC) - Expand

(no subject)

[identity profile] fraks-nsk.livejournal.com - 2013-04-03 06:02 (UTC) - Expand

[identity profile] norguhtar.livejournal.com 2013-04-03 05:25 am (UTC)(link)
А какие варианты? Закат солнца в ручную? Нет спасибо, я лучше с ORM поработаю.

[identity profile] bydl0coder.livejournal.com 2013-04-03 06:28 am (UTC)(link)
ОРМ-хейтеры, типа вас, такие же фанбои, как и SQL-хейтеры. "Всему свое время, и время всякой вещи под небом".