{"action":"opened","issue":{"url":"https://api.github.com/repos/piwik/piwik/issues/8148","labels_url":"https://api.github.com/repos/piwik/piwik/issues/8148/labels{/name}","comments_url":"https://api.github.com/repos/piwik/piwik/issues/8148/comments","events_url":"https://api.github.com/repos/piwik/piwik/issues/8148/events","html_url":"https://github.com/piwik/piwik/issues/8148","id":89519050,"number":8148,"title":"Sequence update improvements","user":{"login":"quba","id":647328,"avatar_url":"https://avatars.githubusercontent.com/u/647328?v=3","gravatar_id":"","url":"https://api.github.com/users/quba","html_url":"https://github.com/quba","followers_url":"https://api.github.com/users/quba/followers","following_url":"https://api.github.com/users/quba/following{/other_user}","gists_url":"https://api.github.com/users/quba/gists{/gist_id}","starred_url":"https://api.github.com/users/quba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quba/subscriptions","organizations_url":"https://api.github.com/users/quba/orgs","repos_url":"https://api.github.com/users/quba/repos","events_url":"https://api.github.com/users/quba/events{/privacy}","received_events_url":"https://api.github.com/users/quba/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-19T09:43:55Z","updated_at":"2015-06-19T09:43:55Z","closed_at":null,"body":"Hi,\r\n\r\nwould it be possible to change this query:\r\nhttps://github.com/piwik/piwik/blob/master/core/Sequence.php#L91-L105\r\n\r\nto set exact number instead of incrementing the sequence? This would make Piwik more resistant in case there are DB replication issues. We should avoid situations when sequence has lower value on one of the nodes."}}