I accidentally clicked the news feed button at the bottom of the page while browsing questions and to my surprise it showed me this:
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:re="http://purl.org/atompub/rank/1.0">
<title type="text">Recent Questions - Stack Overflow</title>
<link rel="self" href="http://stackoverflow.com/feeds" type="application/atom+xml" />
<link rel="alternate" href="http://stackoverflow.com/questions" type="text/html" />
<subtitle>most recent 30 from stackoverflow.com</subtitle>
<updated>2014-09-05T11:08:33Z</updated>
<id>http://stackoverflow.com/feeds</id>
<creativeCommons:license>http://www.creativecommons.org/licenses/by-sa/3.0/rdf</creativeCommons:license>
<entry>
<id>http://stackoverflow.com/q/25684533</id>
<re:rank scheme="http://stackoverflow.com">0</re:rank>
<title type="text">Neo4j support for deferred constraints</title>
<category scheme="http://stackoverflow.com/tags" term="neo4j" />
<category scheme="http://stackoverflow.com/tags" term="cypher" />
<author>
<name>Mehul</name>
<uri>http://stackoverflow.com/users/3936095</uri>
</author>
<link rel="alternate" href="http://stackoverflow.com/questions/25684533/neo4j-support-for-deferred-constraints" />
<published>2014-09-05T11:08:07Z</published>
<updated>2014-09-05T11:08:07Z</updated>
<summary type="html">
<p>Suppose that for certain nodes, attributes have unique constraints defined on them.</p>
<p>When cloning nodes, we copy properties from original to cloned node and then modify the unique attributes on the cloned node.</p>
<p>However, neo4j exhibits eager constraint evaluation and seems to fail as soon as unique properties are replicated from original to cloned node.</p>
<p>Is there are way to differ the constraint evaluation to the end of the transaction?</p>
<p>Or some workaround that can mitigate the problem for the timebeing.</p>
<p>Sample cypher for illustrating the problem:</p>
<ol>
<li><p>Create unique constraint for nodes labelled y on attribute id.</p>
<pre><code>create constraint on (y:y) assert y.id is unique;
</code></pre></li>
<li><p>Create a few y nodes.</p>
<pre><code>create (y:y{id: 1}) return y;
create (y:y{id: 2}) return y;
...
<p>Thanks</p>
</summary>
</entry>
</feed>
I just want to know if this is a bug or it's really what it's suppose to show. Thank you!