Instead of using 2i, you could do the following when saving:

POST
http://{IP}:8098/riak/users/rohman
{"email":"[email protected]","otherdata":"...."}

POST
http://{IP}:8098/riak/emails/[email protected]
{"owner":"rohman"}

So
checking if an email address exists is only a GET
http://{IP}:8098/riak/emails/[email protected] ( and you can even
know who is the user owner -> rohman )

Just you need to create a simple
new bucket/key for it... but is worth the effort... not much work... no
big key arrays, no loops, etc... instant response ; ) 

Rohman 

                
[1]

 ANTONIO ROHMAN FERNANDEZ
CEO, Founder & Lead
Engineer
[email protected] [2]              
 PROJECTS
MaruBatsu.es
[3]
PupCloud.com [4]
Wedding Album [5] 

   

Links:
------
[1]
http://mahalostudio.com
[2] mailto:[email protected]
[3]
http://marubatsu.es
[4] http://pupcloud.com
[5]
http://wedding.mahalostudio.com
_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to