-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OpenConceptLab/ocl_issues#1082 Add GIN, GIST, TRGM extensions and con…
…cepts uri index
- Loading branch information
1 parent
43b9d0e
commit 904904a
Showing
6 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Generated by Django 3.2.8 on 2021-11-09 09:56 | ||
from django.contrib.postgres.operations import BtreeGistExtension | ||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
] | ||
|
||
operations = [ | ||
BtreeGistExtension() | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Generated by Django 3.2.8 on 2021-11-09 09:59 | ||
from django.contrib.postgres.operations import TrigramExtension | ||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('common', '0001_create_ext_btree_gist'), | ||
] | ||
|
||
operations = [ | ||
TrigramExtension() | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Generated by Django 3.2.8 on 2021-11-09 10:03 | ||
from django.contrib.postgres.operations import BtreeGinExtension | ||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('common', '0002_create_ext_trigram'), | ||
] | ||
|
||
operations = [ | ||
BtreeGinExtension() | ||
] |
Empty file.
18 changes: 18 additions & 0 deletions
18
core/concepts/migrations/0024_concept_concepts_uri_trgm_id_gin_idx.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 3.2.8 on 2021-11-09 10:14 | ||
|
||
import django.contrib.postgres.indexes | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('concepts', '0023_concept_concepts_public_conditional'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddIndex( | ||
model_name='concept', | ||
index=django.contrib.postgres.indexes.GinIndex(condition=models.Q(('is_latest_version', True)), fields=['uri', 'id'], name='concepts_uri_trgm_id_gin_idx', opclasses=['gin_trgm_ops', 'int8_ops']), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters