Re: Managing the Django Sqlite development db with respect to Git

2016-02-25 Thread Alex M
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

Re: how to speed up objects saving

2008-02-05 Thread Alex M.
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

Re: how to speed up objects saving

2008-02-01 Thread Alex M.
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

how to speed up objects saving

2008-02-01 Thread Alex M.
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