rosemanblog
  • About me
  • Technical

Easy create or update

Date Tue 09 March 2010 Category Technical Tags django / create_or_update / query-efficiency

One common database operation that isn't supported out of the box by Django's ORM is create_or_update - in other words, given a set of parameters, either update an existing object or create a new one if there isn't one already.

The naive implementation is to do a get ...

View commentss.

more ...

  • Social

    • twitter
    • github
    • stackoverflow
    • rss
  • Tags

    • django
    • patterns
    • python
    • vim
    • query-efficiency
    • mingus
    • generic-relation
    • terminal
    • aggregation
    • ORM

© 2010 Daniel Roseman · Powered by pelican-bootstrap3, Pelican, Bootstrap

Back to top