summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2024-05-15 17:53:18 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2024-05-15 17:55:04 +0200
commit10961d9f7c8f857fd4621bbaaca9feefca86f5f8 (patch)
tree2cab40750a046be78f4ae85ef1a5cec509b131f3
parent55c02a07cab951193dc72bcd43b8500ca523b24b (diff)
downloadIshtar-10961d9f7c8f857fd4621bbaaca9feefca86f5f8.tar.bz2
Ishtar-10961d9f7c8f857fd4621bbaaca9feefca86f5f8.zip
🗃️ profile - relation engine: default changed to cache tables
-rw-r--r--ishtar_common/migrations/0246_profile_rel_engine_default_changed_to_cache_tables.py23
-rw-r--r--ishtar_common/models.py2
2 files changed, 24 insertions, 1 deletions
diff --git a/ishtar_common/migrations/0246_profile_rel_engine_default_changed_to_cache_tables.py b/ishtar_common/migrations/0246_profile_rel_engine_default_changed_to_cache_tables.py
new file mode 100644
index 000000000..50a6c1b89
--- /dev/null
+++ b/ishtar_common/migrations/0246_profile_rel_engine_default_changed_to_cache_tables.py
@@ -0,0 +1,23 @@
+# Generated by Django 2.2.24 on 2024-05-15 17:50
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('ishtar_common', '0245_verbose_names'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='ishtarsiteprofile',
+ name='files',
+ field=models.BooleanField(default=False, verbose_name='File/administrative module'),
+ ),
+ migrations.AlterField(
+ model_name='ishtarsiteprofile',
+ name='parent_relations_engine',
+ field=models.CharField(choices=[('V', 'SQL views'), ('T', 'Cache tables')], default='T', help_text='If you experience performance problems with complex relations (for instance: complex statigraphic relations), set it to "Cache tables" in order to use static cache tables. Do not forget to update theses table with the "migrate_relations_cache_tables" manage.py command.', max_length=1, verbose_name='Parent relations engine'),
+ ),
+ ]
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index 00faab64d..1aab612df 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -1112,7 +1112,7 @@ class IshtarSiteProfile(models.Model, Cached):
("V", _("SQL views")),
("T", _("Cache tables")),
),
- default="V",
+ default="T",
max_length=1,
help_text=_(
"If you experience performance problems with complex relations "