Re: Django and Multiple Database Support

2006-01-10 Thread Adrian Holovaty
On 1/10/06, Greg <[EMAIL PROTECTED]> wrote: > So I hacked > DatabaseWrapper.quote_name so that it doesn't quote periods, but is > that the "right" way to handle this or is it an ugly hack? It seems to > work very well, but it feels like it might be cleaner to add a > db_schema attribute or

Re: Django and Multiple Database Support

2006-01-09 Thread Greg
I'm faced with the multiple-schema problem in MySQL, which AFAICT is a lot simpler than actually having multiple databases because at least you don't have to coordinate multiple connections. Actually, it basically already works. I wrote class Poll(meta.Model): class META: db_table =

Re: Django and Multiple Database Support

2005-12-29 Thread Kenneth Gonsalves
On Friday 30 Dec 2005 5:12 am, hugo wrote: > So, yes, I do think it would be very useful for Django to be able > to access multiple databases via it's ORM incidently, we need support for postgres schemas also - i have an Financial Accounting app where, in multi-company mode, the tables for

Re: Django and Multiple Database Support

2005-12-29 Thread hugo
>I've always though that this particular -- and common -- use case >should be delegated to the DB level using one of the many excellent >replication/distribution tools for your database. For example, you >could easily do read distribution with pg_pool or sqlrelay, and it >would be transparent to

Re: Django and Multiple Database Support

2005-12-29 Thread Simon Willison
On 29 Dec 2005, at 20:29, Jacob Kaplan-Moss wrote: I've always though that this particular -- and common -- use case should be delegated to the DB level using one of the many excellent replication/distribution tools for your database. For example, you could easily do read distribution

Re: Django and Multiple Database Support

2005-12-29 Thread Jacob Kaplan-Moss
On Dec 29, 2005, at 9:10 AM, Adrian Holovaty wrote: ... or would you be doing more of a standard setup, in which you'd want database reads to be spread evenly across multiple DBs? Go ahead and explain the setup, and we can get started on designing the feature. I've always though that this

Re: Django and Multiple Database Support

2005-12-29 Thread Adrian Holovaty
On 12/29/05, Scott johnson <[EMAIL PROTECTED]> wrote: > Now I haven't hacked Django much myself yet (I've been working on the back > end tools, db loader and overall schema). What support does Django have for > multiple db stuff? Hey Scott, Welcome! Django doesn't support multiple DBs out of

Django and Multiple Database Support

2005-12-29 Thread Scott johnson
Hello, *Long time lurker; first time poster*.  My partner and I are standarizing on Django / Python for the front end of www.ookles.com, our new startup.  We're both php folk and I've convinced him that Django is better than ruby (based, honestly, on my respect for Simon and Adrian rather than a