On Thu, Mar 12, 2009 at 11:44 AM, James Bennett <ubernost...@gmail.com> wrote:
>
> On Wed, Mar 11, 2009 at 11:39 PM, Yuri Baburov <burc...@gmail.com> wrote:
>> Maybe let's go a bit further towards pool of db connections and wrap a
>> bunch of lines importing backend into some function that depends on
>> engine argument?
>
> FWIW I'm still strongly of the opinion that database connection
> pooling does not belong in an ORM like Django's.
Dear James,
But I didn't tell whether connection pooling should belong to Django
ORM or not! And neither I told how do I understand "connection
pooling"...

Let's just wrap those lines into a function! :)

Adrian suggested a new way to write function get_db_wrapper in comments at
http://www.eflorenzano.com/blog/post/easy-multi-database-support-django/

But why not have a method get_db_engine(engine_name) in the Django ORM code?

-- 
Best regards, Yuri V. Baburov, ICQ# 99934676, Skype: yuri.baburov,
MSN: bu...@live.com

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

Reply via email to