Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use django-tenants clone tenant for faster tenant creation #127

Closed
atodorov opened this issue Apr 29, 2021 · 0 comments
Closed

Use django-tenants clone tenant for faster tenant creation #127

atodorov opened this issue Apr 29, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@atodorov
Copy link
Member

Rationale: the current create_tenant() function triggers migrations and sometimes they take longer to apply which results in web timeouts. So far that didn't result in tenants with broken schema but it is possible and is also frustrating to users.

django-tenants supports the clone_tenant command, https://django-tenants.readthedocs.io/en/latest/use.html?highlight=clone#clone-tenant and IIRC in the past that wasn't working well but now it is. We've got to test it and make sure it is well covered both upstream and inside our own test suite (and also measure speed of execution) but it sounds like this is what we need to be using.

@atodorov atodorov added the enhancement New feature or request label Apr 29, 2021
atodorov added a commit to kiwitcms/Kiwi that referenced this issue Sep 2, 2021
atodorov added a commit to kiwitcms/Kiwi that referenced this issue Sep 2, 2021
atodorov added a commit that referenced this issue Sep 2, 2021
atodorov added a commit to kiwitcms/Kiwi that referenced this issue Sep 2, 2021
atodorov added a commit to kiwitcms/Kiwi that referenced this issue Sep 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

No branches or pull requests

1 participant