Исходный код вики Индексы
Редактировал(а) Alexandr Fokin 2024/05/29 18:53
Последние авторы
author | version | line-number | content |
---|---|---|---|
1 | |(% style="width:111px" %) |(% style="width:1373px" %)[[PostgreSQL. Индексы>>doc:Разработка.Базы данных.SQL.PostgreSQL.Механизмы.PostgreSQL\. Индексы.WebHome]] | ||
2 | |(% style="width:111px" %)null поля|(% style="width:1373px" %)((( | ||
3 | По умолчанию (SQL) null поле не учитывается ограничении уникальности. | ||
4 | Чтобы добавить проверку уникальности по null значению нужно добавить фильтрующий индекс. | ||
5 | |||
6 | Create unique constraint with null columns | ||
7 | [[https:~~/~~/stackoverflow.com/questions/8289100/create-unique-constraint-with-null-columns>>https://stackoverflow.com/questions/8289100/create-unique-constraint-with-null-columns]] | ||
8 | |||
9 | [[EntityFramework | EntityFrameworkCore>>doc:Разработка.NET.Работа с БД.EntityFramework | EntityFrameworkCore.WebHome||style="outline-width: 0px !important; user-select: auto !important;"]] | ||
10 | |||
11 | {{code language="c#"}} | ||
12 | AreNullsDistinct() | ||
13 | {{/code}} | ||
14 | ))) | ||
15 | |(% style="width:111px" %)Like запрос|(% style="width:1373px" %)((( | ||
16 | PostgreSQL LIKE query performance variations | ||
17 | [[https:~~/~~/stackoverflow.com/questions/1566717/postgresql-like-query-performance-variations>>https://stackoverflow.com/questions/1566717/postgresql-like-query-performance-variations]] | ||
18 | |||
19 | 11.10. Operator Classes and Operator Families (text_pattern_ops) | ||
20 | [[https:~~/~~/www.postgresql.org/docs/current/indexes-opclass.html>>https://www.postgresql.org/docs/current/indexes-opclass.html]] | ||
21 | ))) | ||
22 | |(% style="width:111px" %) |(% style="width:1373px" %) |