Social Reiot

Social Game Developer wandering in strange dungeon.

트랜잭션 처리시 주의사항: - Back Referece Property ...

트랜잭션 처리시 주의사항: - back referece property 를 순회하는 코드는 무조건 기존에 캐싱된 값을 날려버린다. for song in album.songs: update song # changed for song in album.songs: show show # not changed because of reloaded 해결책은 업데이트된 엔티티를 별도로 리스트에 저장해둬야 한다. updated = [] for song in album.songs: update song # changed updated.append(song) for song in album.songs: show show # not changed because of reloaded db.put(updated)

Comments