-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…3594) * fix(notif): Index les relations generiques des modeles des notifs. Pour information, Django n'index pas automatiquement les relations generiques ce qui vient plomber les performances quand on commence a disposer d'une grosse base de donnees. Voir https://groups.google.com/forum/#!topic/django-users/GJ-FVh40-F4 Closes #3587 * [ci skip] Ajoute la commande d'opti mysql dans le update.md
- Loading branch information
1 parent
7d74dc7
commit 25f5cac
Showing
3 changed files
with
28 additions
and
2 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
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,24 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('notification', '0007_auto_20160121_2343'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='notification', | ||
name='object_id', | ||
field=models.PositiveIntegerField(db_index=True), | ||
), | ||
migrations.AlterField( | ||
model_name='subscription', | ||
name='object_id', | ||
field=models.PositiveIntegerField(db_index=True), | ||
), | ||
] |
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