On 8/8/07, Rob Hudson <[EMAIL PROTECTED]> wrote:
>
> On Aug 6, 4:16 am, Matti Haavikko <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > Can you get the same result with "default-storage-engine=InnoDB" in your
> > my.cnf?
> >
> >  - Haavikko
>
> I believe you can but for other various reasons I'm not able to make
> this change globally.
>
> Does anyone know if adding the DATABASE_OPTIONS config setting adds
> any unneeded overhead?

init_command is run every time a connection is established through
MySQLdb.connection.Connection() so anything you put into init_command
will be executed each time a connection is made to the database. "SET
storage_engine=INNODB" would be "unneeded overhead" under normal
circumstances since it sets a system variable that only affects table
creation.

This is why the docs say that you remove init_command from
DATABASE_OPTIONS once you have created your tables.
-- 
_nimrod_a_abing_

http://abing.gotdns.com/
http://www.preownedcar.com/

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

Reply via email to