On 5/17/2011 2:28 PM, Erik Rose wrote:
I would be very happy to test this against Oracle database to see is how
much patch improves speed since previously running tests against Oracle
has been a real pain specially all db recreate stuff took a long long
time.
Great! I'll post again to this thread when the patch is ready. Or, if you'd
like to try it now, you can download https://github.com/jbalogh/test-utils and
make your test classes subclass FastFixtureTestCase rather than TestCase.
When I try this on a PostgreSQL database, I have problems relating to
violated uniqueness constraints, sometimes from tests themselves,
sometimes from setUpClass, sometimes from tearDownClass. In the latter
two cases, it's the sites table involved. Is this something others have
dealt with, or am I on my own? :)
I tried adding a PostgreSQL "disable constraints" statement here:
https://github.com/jbalogh/test-utils/blob/master/test_utils/__init__.py#L109
cursor.execute('SET CONSTRAINT ALL DEFERRED')
It didn't help.
Thanks,
--Ned.
--
You received this message because you are subscribed to the Google Groups "Django
developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-developers?hl=en.