Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Unique Indexes and REST
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Nigel Small  
View profile  
 More options Sep 18 2012, 6:20 am
From: Nigel Small <ni...@nigelsmall.net>
Date: Tue, 18 Sep 2012 11:20:22 +0100
Local: Tues, Sep 18 2012 6:20 am
Subject: Unique Indexes and REST

Hi chaps

We are currently working with unique indexes via the REST interface and it
seems that we could do with a finer-grained level of control with regards
to the operations available, particularly when batching up a number of
requests.

Currently, we can quite happily call a "get_or_create" style operation
which will return 201 if a node (or relationship) is indexed and 200 if it
one already exists for that key-value pair. A desired alternative however
would be to have a "create_or_fail" type operation which could return 201
or 400 instead. Importantly, this operation would stop the batch in
progress and roll back the transaction.

Perhaps the URI could accept a flag something like:

POST http://localhost:7474/db/data/index/node/people?unique&*fail_if_exists*

WDYT?
Nige


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
kantube  
View profile  
 More options Sep 18 2012, 10:08 am
From: kantube <mich...@mkanner.com>
Date: Tue, 18 Sep 2012 07:08:29 -0700 (PDT)
Local: Tues, Sep 18 2012 10:08 am
Subject: Re: Unique Indexes and REST

Nigel,

uniqueness=create_or_fail will return either 200 or 409 (conflict)

http://docs.neo4j.org/chunked/snapshot/rest-api-unique-indexes.html

this is available in 1.9 snapshot.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nigel Small  
View profile  
 More options Sep 18 2012, 11:56 am
From: Nigel Small <ni...@nigelsmall.net>
Date: Tue, 18 Sep 2012 16:55:56 +0100
Local: Tues, Sep 18 2012 11:55 am
Subject: Re: [Neo4j] Re: Unique Indexes and REST

That's awesome, thanks a lot :-)

Nige

On 18 September 2012 15:08, kantube <mich...@mkanner.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »