{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/e179c568a5b068ac2914a2c46ce5c2ab?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"e179c568a5b068ac2914a2c46ce5c2ab","url":"https://api.github.com/users/robinharms","login":"robinharms","id":737216},"assignee":{"avatar_url":"https://secure.gravatar.com/avatar/e179c568a5b068ac2914a2c46ce5c2ab?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"e179c568a5b068ac2914a2c46ce5c2ab","url":"https://api.github.com/users/robinharms","login":"robinharms","id":737216},"updated_at":"2011-11-14T07:50:08Z","labels":[{"name":"Critical","color":"e10c02","url":"https://api.github.com/repos/VoteIT/voteit.core/labels/Critical"}],"closed_at":null,"comments":2,"url":"https://api.github.com/repos/VoteIT/voteit.core/issues/20","body":"ZODB.POSException.ConflictError is raised a lot more times than expected.\r\nWhile the database won't be corrupted or anything, it's anoying for users if their data isn't saved.\r\n\r\nThis is propbably related to the unread functionality, and that we change the content of an OOSet. If 2 users view the same page at the same time, it will (probably) cause a conflict when they try to update the list and commit changes at the same time.\r\n\r\nIt might be a better idea to use unreads stored in a userid-related structure instead. We need to investigate this more.","html_url":"https://github.com/VoteIT/voteit.core/issues/20","title":"Simultaneous writes to db attrs causes conflicts (Unread?)","number":20,"id":2168011,"created_at":"2011-11-07T21:59:40Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/e179c568a5b068ac2914a2c46ce5c2ab?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"e179c568a5b068ac2914a2c46ce5c2ab","url":"https://api.github.com/users/robinharms","login":"robinharms","id":737216},"updated_at":"2011-11-14T07:50:08Z","url":"https://api.github.com/repos/VoteIT/voteit.core/issues/comments/2727510","body":"It's possible to write the metadata adapter differently. If some keys are left out, it won't reindex those keys.\r\nHowever, the unread part might need refactoring anyway, since it will cause writes of non ZODB-objects as value for the 'unread' key. This will cause conflicts.\r\n","id":2727510,"created_at":"2011-11-14T07:50:08Z"}}