2i Values

2011-11-18 Thread Tim Ariyeh
Is it possible to return a value along with a 2i query?  For instance, if I 
perform a range query against an _int index, can I return both the relevant and 
keys  their respective value for that field?

If not, can they be accessed in a reduce function without loading the document?

Thanks,
Tim


___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


RE: 2i Values

2011-11-18 Thread Tim Ariyeh
Rusty,

I was referring to the index value.  I understand I need to make another trip 
to get the actual value stored at the key, but I was hoping I could get the 
value of the index field directly from an index query.

For clarity, if I have a riak key "foo" with a value of "bar", and an index 
"score_int" with a value of 5, I'd like to be able to range query against the 
score_int index and return both the list of keys ("foo") and the value of the 
index I queried ("5").



From: Rusty Klophaus [mailto:ru...@basho.com]
Sent: Friday, November 18, 2011 10:43 AM
To: Tim Ariyeh
Cc: riak-users@lists.basho.com
Subject: Re: 2i Values

Hi Tim,

No, that's not currently possible.

Just to clarify, when you say you want the "respective value", do you mean the 
object's value in Riak (ie: the result of a GET operation) or rather the 
index's value (ie: the value associated with the _int index)?

Thanks,
Rusty
On Fri, Nov 18, 2011 at 11:04 AM, Tim Ariyeh 
mailto:tari...@softlayer.com>> wrote:
Is it possible to return a value along with a 2i query?  For instance, if I 
perform a range query against an _int index, can I return both the relevant and 
keys  their respective value for that field?

If not, can they be accessed in a reduce function without loading the document?

Thanks,
Tim


___
riak-users mailing list
riak-users@lists.basho.com<mailto:riak-users@lists.basho.com>
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com



--
Rusty Klophaus (@rustyio)
Basho Technologies, Inc.
www.basho.com<http://www.basho.com/>


___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


bucket key listing

2011-11-29 Thread Tim Ariyeh
Ripple indicates that a representative from Basho will come to your home and 
beat you to death if you perform a list keys in production.  Is this still a 
massive no-no with 2i?

I'm not familiar with how much is automatically indexed, so I guess I'm asking 
if there is any point in my creating an index that basically all elements of a 
(reasonably constrained) bucket have in common.

___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


repost: bucket key listing

2011-12-01 Thread Tim Ariyeh
I didn't see anyone address this.  Did I miss it, or is this just a wildly 
unpopular question?

-Original Message-
From: Tim Ariyeh 
Sent: Tuesday, November 29, 2011 4:25 PM
To: riak-users@lists.basho.com
Subject: bucket key listing

Ripple indicates that a representative from Basho will come to your home and 
beat you to death if you perform a list keys in production.  Is this still a 
massive no-no with 2i?

I'm not familiar with how much is automatically indexed, so I guess I'm asking 
if there is any point in my creating an index that basically all elements of a 
(reasonably constrained) bucket have in common.

___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Riak & FreeBSD

2011-12-12 Thread Tim Ariyeh
Has there been any development in this area?  I saw this:

http://lists.basho.com/pipermail/riak-users_lists.basho.com/2011-August/005228.html

But I wondered if any clear "official" or "least horrible" path existed now.

I mean, it only seems logical that Riak run on the flavor of Unix preferred by 
literally 100% of people without debate or contention.

Thanks,
Tim
___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


RE: Store a list of another document?

2011-12-14 Thread Tim Ariyeh
If you're just interested in later finding documents you've stored, would 
secondary indexes be a good fit?  Is there a common property by which you'd 
like to load this list of documents?



http://wiki.basho.com/Secondary-Indexes.html



It gets you out of the business of managing contention for updating the list of 
documents, but still allows you to find them.



There is also the potential I've completely misunderstood your question.


From: riak-users-boun...@lists.basho.com 
[mailto:riak-users-boun...@lists.basho.com] On Behalf Of Shuhao Wu
Sent: Tuesday, December 13, 2011 12:41 PM
To: riak-users@lists.basho.com
Subject: Store a list of another document?

Hi,

Is there a way to store an array of key or something to other documents? By 
that I have a key and that maps to an array that contains references to many 
other documents/object?

Thanks.

Shuhao
___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com