mirror of
https://github.com/not-kennethreitz/convore.json.git
synced 2026-06-21 07:31:00 +00:00
1 line
1.2 KiB
JSON
1 line
1.2 KiB
JSON
[{"user_id": 22386, "stars": [], "topic_id": 20837, "date_created": 1303481114.987349, "message": "when checking for a Model instance and needing to create a new one if not found which is better using get_or_create or try: except: Model.DoesNotExist", "group_id": 81, "id": 781629}, {"user_id": 13912, "stars": [{"date_created": 1303488595.846118, "user_id": 1127}], "topic_id": 20837, "date_created": 1303482273.5085199, "message": "Sorry, misread your question. In essence it should be the same for performance, just lighter on amounts of code you've to write.", "group_id": 81, "id": 781748}, {"user_id": 13912, "stars": [], "topic_id": 20837, "date_created": 1303481800.281245, "message": "where did you read it's better for performance? As far as I know it's a shortcut that does the same (although haven't checked the implementation, but the docs say it's just a shortcut, never that it's faster, or does things with one db query)", "group_id": 81, "id": 781706}, {"user_id": 13912, "stars": [], "topic_id": 20837, "date_created": 1303482020.712657, "message": "yup http://code.djangoproject.com/browser/django/trunk/django/db/models/query.py#L363", "group_id": 81, "id": 781721}] |