Hi

I have a requirement that I imagine can't be too unique, however I am
unable to find examples online of how to achieve what I'm trying to
do.

In simple terms, I need a setup where each one of my user's data is
stored in their own database. (We're using mysql).

I have a master database that stores which users exist and which
database their data is in.

I realise that this architecture might seem very odd but we have our
reasons.

The problem I face is that I want to use multiple database support but
I don't want (can't) have all of the databases defined in the
settings.py's DATABASES dict. We'll have thousands of users on a
single box.

So, for each request I need to interrogate the request, determine
which user it is, open up a connection to their database, do stuff,
and then return the result.

Each users' database's structure is identical so I would like to use
the ORM to interact with the data.

Does anyone have any pointers on how to do this with Django?

Thanks in advance,
j.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to