sql_create_table = "CREATE UNLOGGED TABLE %(table)s (%(definition)s)"
def create_model(self, model): super(PostGISSchemaEditor, self).create_model(model) # Create geometry columns for sql in self.geometry_sql: if not 'USING GIST' in sql: self.execute(sql) self.geometry_sql = []
fsync = offsynchronous_commit = offfull_page_writes = off
While these are the winners:
- fsync = off
- synchronous_commit = off
- full_page_writes = off
The keepdb option allows to avoid recreating the test database at each run, hence saving precious time.If you want to speed up tests even more, tweak your local postgresql configuration by setting these values:# /etc/postgresql/9.1/main/postgresql.conf# only for development!
fsync = offsynchronous_commit = offfull_page_writes = off
--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-develop...@googlegroups.com.
To post to this group, send email to django-d...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/7c3c1b6c-68f5-4cf0-b2db-d5fa58a6930d%40googlegroups.com.
That's also a viable alternative, although it also mention unlogged tables, which are not supported by django.
We could list the quick hint with config sample, a link to pg non durable options page and a warning that UNLOGGED tables are not supported yet. What do you think about this?
BTW has anyone had the time to try unlogged tables with their test suite to see if it gave them any improvements? I am quite surprised i didn't even get a 5-10% improvement out of the promised 10-17%.
Federico
sql_create_table = "CREATE UNLOGGED TABLE %(table)s (%(definition)s)"
-- "I was sad because I had no shoes, until I met a man who had no feet. So I said, "Got any shoes you're not using?" (Steven Wright) Luke Plant || http://lukeplant.me.uk/
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/DF490E5E-DC25-44B6-88D5-36D9A2DBC1AA%40polytechnique.org.