Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Why I Hate the Django ORM

Why I Hate the Django ORM

Alex Gaynor

January 12, 2012
Tweet

More Decks by Alex Gaynor

Other Decks in Programming

Transcript

  1. I ALSO HELP BUILD IT (SO ALL OF THIS STUFF

    IS REALLY MY FAULT) Thursday, January 12, 2012
  2. WHY DO WE HAVE AN ORM? DATABASE RECORDS INTO OBJECTS

    EXECUTE COMMON QUERIES NOT REPLACE SQL Thursday, January 12, 2012
  3. Traceback (most recent call last): File "<input>", line 1, in

    <module> File ".../query.py", line 741, in annotate is_summary=False) File ".../sql/query.py", line 990, in add_aggregate field_list = aggregate.lookup.split(LOOKUP_SEP) AttributeError: 'ExpressionNode' object has no attribute 'split' FFFFFFFUUUUUUUUUUUU Thursday, January 12, 2012
  4. WEREN’T DESIGNED WITH EACH OTHER IN MIND MUCH LESS A

    COMPREHENSIVE SYSTEM Thursday, January 12, 2012
  5. WHEN DO YOU USE WHICH? I HAVE NO IDEA (AND

    I WROTE THE DAMNED THING) Thursday, January 12, 2012
  6. THE IDEALS OF THE ORM ARE GOOD THE API IS

    GREAT FOR SIMPLE CASES Thursday, January 12, 2012