Изменения документа Индексы

Редактировал(а) Alexandr Fokin 2024/05/29 18:53

<
От версии < 1.2 >
отредактировано Alexandr Fokin
на 2023/09/18 01:34
К версии < 1.14
отредактировано Alexandr Fokin
на 2024/05/29 18:53
Изменить комментарий: К данной версии нет комментариев

Комментарий

Подробности

Свойства страницы
Содержимое
... ... @@ -1,11 +1,22 @@
1 -|(% style="width:185px" %) |(% style="width:1269px" %)(((
2 -По умолчанию null поле не учитывается ограничении уникальности.
1 +|(% style="width:111px" %) |(% style="width:1373px" %)[[PostgreSQL. Индексы>>doc:Разработка.Базы данных.SQL.PostgreSQL.Механизмы.PostgreSQL\. Индексы.WebHome]]
2 +|(% style="width:111px" %)null поля|(% style="width:1373px" %)(((
3 +По умолчанию (SQL) null поле не учитывается ограничении уникальности.
3 3  Чтобы добавить проверку уникальности по null значению нужно добавить фильтрующий индекс.
4 4  
5 5  Create unique constraint with null columns
6 6  [[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}}
7 7  )))
8 -|(% style="width:185px" %) |(% style="width:1269px" %)
9 -|(% style="width:185px" %) |(% style="width:1269px" %)
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]]
10 10  
11 -
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" %)