#9549: Give initial_data.* files  an option for not over writing current data.
------------------------------------+---------------------------------------
          Reporter:  MrNarwhal      |         Owner:  nobody                    
           
            Status:  new            |     Milestone:                            
           
         Component:  Serialization  |       Version:  1.0                       
           
        Resolution:                 |      Keywords:  initial data, syncdb, 
json, xml, yaml
             Stage:  Accepted       |     Has_patch:  0                         
           
        Needs_docs:  0              |   Needs_tests:  0                         
           
Needs_better_patch:  0              |  
------------------------------------+---------------------------------------
Changes (by russellm):

  * needs_better_patch:  => 0
  * stage:  Unreviewed => Accepted
  * component:  Database layer (models, ORM) => Serialization
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 As I've noted on the mailing list, Implementing a --noclobber option seems
 like a reasonable idea to me. As a note to anyone attempting to implement
 this; ``loaddata`` and ``syncdb`` would both need to have this option
 added. Providing an efficient implementation is also an important concern.
 Keep in mind that the naive approach (lookup PK, only write if PK doesn't
 exist) could potentially double the amount of SQL traffic required..

-- 
Ticket URL: <http://code.djangoproject.com/ticket/9549#comment:1>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@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-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to