Files
2012-02-21 01:15:00 -05:00

1 line
1.2 KiB
JSON

[{"user_id": 41335, "stars": [], "topic_id": 48973, "date_created": 1325175387.38903, "message": "Apparently Django on sqlite does not autoincrement on PK, this coupled with Generic relationships not being deleted when the referenced object gets deleted results on deleted element relations being associated with newer objects", "group_id": 81, "id": 2748320}, {"user_id": 41335, "stars": [], "topic_id": 48973, "date_created": 1325175522.155282, "message": "Basically newer objects end up with a PK that once was of a deleted object which had relationships that were not cleared and that now refer to the wrong object", "group_id": 81, "id": 2748321}, {"user_id": 41335, "stars": [], "topic_id": 48973, "date_created": 1325175529.85514, "message": "An example of this is happening to me with Django contrib comments, I end up with old comments referring to older deleted posts showing on new posts.", "group_id": 81, "id": 2748322}, {"user_id": 41335, "stars": [], "topic_id": 48973, "date_created": 1325175535.474674, "message": "Any ideas how to workaround this? I believe it won't happen on MySQL because PK are real autoincrement fields and will never get reused.", "group_id": 81, "id": 2748323}]