Migrations Under The Hood

077e9a0cb34fa3eba2699240c9509717?s=47 Andrew Godwin
November 14, 2014

Migrations Under The Hood

A talk I gave at Django Under The Hood 2014.

077e9a0cb34fa3eba2699240c9509717?s=128

Andrew Godwin

November 14, 2014
Tweet

Transcript

  1. 2.

    Andrew Godwin Author of South migrations library Hi, I'm Author

    of 1.7 Django migrations Senior Software Engineer at Eventbrite Apparently at every Django conference
  2. 6.
  3. 14.

    Makes appA tables migrations Makes appB tables Adds FKs from

    appB to appA Adds FKs from appA to appB
  4. 15.

    Makes appA tables migrations Makes appB tables Adds FKs from

    appB to appA Adds FKs from appA to appB
  5. 40.

    create model + delete model = nothing create model +

    create field = create model create field + alter field = create field alter field + delete field = delete field alter field + alter field = alter field
  6. 50.

    • Autodetector is slow • Optimizer is not great •

    Graph state building is inefficient Room for improvement!