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

Separate DB for the logs #470

Open
aqeelat opened this issue Dec 11, 2022 · 5 comments
Open

Separate DB for the logs #470

aqeelat opened this issue Dec 11, 2022 · 5 comments

Comments

@aqeelat
Copy link
Member

aqeelat commented Dec 11, 2022

This is another feature request that I'm willing to work on:
Allow choosing a separate DB to store the logs at.

@hramezani
Copy link
Member

Isn't it possible to use database-routers for this porpuse?

@aqeelat
Copy link
Member Author

aqeelat commented Dec 14, 2022

Actually, I'm having trouble wrapping my mind around how we'd handle foreign keys (user and contenttype) when we're using multiple databases. Any ideas?

@hramezani
Copy link
Member

hramezani commented Dec 15, 2022

Isn't it possible to handle it by allow_relation in the router?

@aqeelat
Copy link
Member Author

aqeelat commented Dec 15, 2022

Can you elaborate more? Do you have a working example?

@hramezani
Copy link
Member

I don't have a working example and never worked with multidb in Django. Just checking the docs.
BTW, If you explain more we may can find a proper solution for this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants