我需要在我的aggregate应用程序中使用一些经常更改的django数据,如果我动态地进行计算,可能会出现一些性能问题。因此,我需要将aggregate结果保存在表中,并在数据更改时更新它们。因为我使用django,所以可能存在一些选项,也可能没有一些选项。例如,我可以使用django signals和一个在发出post_save信号时更新结果的表。另一个选项是materialized views in postgresql或indexed views in MSSQL Server,
django.db.utils.OperationalError: server closed the connection unexpectedly File "C:\Python27\lib\site-packages\djangoself.ensure_connection()
File "C:\Python27\lib\site-package
我正在为我的python(2.7)项目使用mongodb和django framework..when,我给了python manage.py manage.py,它可以工作,但是如果我同步数据库(pythonmanage.py", line 14, in <module> File "/usr/lib/pymodules/python2.7/djangoself.fetch_command