Python Portal
Всё самое интересное из мира Python Сотрудничество, реклама: @devmangx Работаем с @Spiral_Yuri РКН: https://clck.ru/3GMMF6
Show more📈 Analytical overview of Telegram channel Python Portal
Channel Python Portal (@pythonportal) in the Russian language segment is an active participant. Currently, the community unites 50 549 subscribers, ranking 2 552 in the Technologies & Applications category and 12 149 in the Russia region.
📊 Audience metrics and dynamics
Since its creation on невідомо, the project has demonstrated rapid growth, gathering an audience of 50 549 subscribers.
According to the latest data from 15 September, 2026, the channel demonstrates stable activity. Although there has been a change in the number of participants by -622 over the last 30 days and by -13 over the last 24 hours, overall reach remains high.
- Verification status: Not verified
- Engagement rate (ER): The average audience engagement rate is 8.01%. Within the first 24 hours after publication, content typically collects 4.68% reactions from the total number of subscribers.
- Post reach: On average, each post receives 4 051 views. Within the first day, a publication typically gains 2 365 views.
- Reactions and interaction: The audience actively supports content: the average number of reactions per post is 15.
- Thematic interests: Content is focused on key topics such as строка, none, true, модуль, peter.
📝 Description and content policy
The author describes the resource as a platform for expressing subjective opinions:
“Всё самое интересное из мира Python
Сотрудничество, реклама: @devmangx
Работаем с @Spiral_Yuri
РКН: https://clck.ru/3GMMF6”
Thanks to the high frequency of updates (latest data received on 16 September, 2026), the channel maintains relevance and a high level of publication reach. Analytics show that the audience actively interacts with content, making it an important point of influence in the Technologies & Applications category.
=, а NULL = NULL не даёт true. По умолчанию NULL не считается уникальным значением.
Postgres не может доказать равенство двух NULL, поэтому пропускает обе строки.
Простой пример, где это ломается, — составной ключ:
-- UNIQUE (user_id, org_id, deleted_at)
INSERT INTO memberships VALUES (1, 10, NULL);
INSERT INTO memberships VALUES (1, 10, NULL);
-- обе строки будут вставлены
В итоге можно получить две активные записи membership для одного и того же пользователя, потому что ограничение уникальности вообще не срабатывает.
NULLS NOT DISTINCT
Начиная с Postgres 15, уникальные ограничения и индексы могут считать NULL равными:
UNIQUE NULLS NOT DISTINCT (user_id, org_id, deleted_at)
Второй INSERT уже завершится ошибкой.
Но это также запретит две строки с одинаковым значением deleted_at, а не только две активные строки.
Частичный уникальный индекс
Если уникальность нужно обеспечить только для активных строк, используйте partial unique index:
CREATE UNIQUE INDEX ON memberships (user_id, org_id)
WHERE deleted_at IS NULL;
👉 @PythonPortalelse if — это ещё одно критическое допущение, о котором ты уже забыл.
Убери один граничный случай — и смотри, как вся конструкция начинает шататься.
👉 @PythonPortal