Normally for a site you don't keep your db in version control because
the table definitions come from Django. Now if you have data to
prepopulate (each time you fresh clone) or need to do a backup then use
standard db backup mechanisms.
Like dumping your db to an sql backup. It's not efficient to
Thanks everybody for your answers
well, I've tried the solutions you've proposed and I've tested them on a
part of my import procedure on my dev machine
previously, this part was taking about 12 minute to complete
-Justin & Rajesh
my tables are MyIsam. I've read Django documentation on transact
Thanks a lot for the advice
I'll try to redefine save methods in all the objects to see how much time it
saves
Alex
Ivan Illarionov wrote:
>
>
> You have two options:
> 1. Execute raw SQL 'INSERT' queries
> 2. Override the Model.save() or create new save_fast() method in your
> Model class
Hello,
I have a problem: on my website I periodically need to transfer some data
from a DB, to the Django DB of the website (I currently use MySQL)
what i do in my view is to call some SQL queries on the "from" database,
make some calculations and rearrangements on the data to transfer, then c
4 matches
Mail list logo