On Thu, May 23, 2013 at 2:17 AM, kurt campher <[email protected]> wrote:
> Hey Otto
>
> So a fundamental design attribute of Riak (and other key/value stores) is
> that data retrieval is done by knowing the key.
> To pull the first 10 keys is similar to what one would do in a relational DB
> like MySQL.
>
> However with Riak this sort of operation is expensive as a full table scan
> is done. The keys are not indexed.
>
> There some work-arounds/solutions though:
>
> Use the Riak Secondary index. Documentation is available.

Here are the relevant docs:

http://docs.basho.com/riak/latest/tutorials/Secondary-Indexes---Examples/#Range-Query

Mark




> Set a key which has as a value all the keys in a list format.  ['key1',
> 'key2', etc...]
>
> This requires you to maintain this properly and keep the "eventual
> consistency" in mind.
>
> Just my 2 cents.
>
> Hope it helps.
>
>
>
>
>
> On Thu, May 23, 2013 at 10:07 AM, Otto Kekäläinen <[email protected]>
> wrote:
>>
>> 2013/5/23 Simon de Haan <[email protected]>:
>> > This is documented behaviour of Riak Search's Standard Analyzer
>> > Factory:
>> > http://docs.basho.com/riak/latest/cookbooks/Riak-Search---Schema/#Standard-Analyzer-Factory
>> >
>> > "3. Strip out any tokens smaller than 3 characters as well as
>> > stopwords (common English words)."
>>
>> Thanks!
>>
>> What about my actual goal, can I in any way retrieve with search or
>> some other feature say the 10 first keys and values from the Riak
>> datastore?
>>
>> Serach with simply "*" would be cool, since search has build in rows
>> and start that allow pagnation.
>>
>> _______________________________________________
>> riak-users mailing list
>> [email protected]
>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
>
>
> _______________________________________________
> riak-users mailing list
> [email protected]
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>

_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to