You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and far more. You can even use Search in conjunction with [Riak Data Types][dev data types]\(documentation coming soon).
171
-
172
-
> **Search is preferred for querying**
173
-
>
174
-
> In general, you should consider Search to be the default choice for
175
-
nearly all querying needs that go beyond basic CRUD/KV operations. If
176
-
your use case demands some sort of querying mechanism and you're in
177
-
doubt about what to use, you should assume that Search is the right tool
178
-
for you.
179
-
180
-
### When Not to Use Search
181
-
182
-
***When deep pagination is needed** - At the moment, you should
183
-
consider [secondary indexes][usage 2i] instead of
184
-
Search if your use case requires deep pagination. This will be
185
-
changed, however, in a future release of Riak, at which point you
186
-
should consider Search the default choice for _all_ querying needs.
187
-
***In large clusters** - In clusters larger than 8-10 nodes, you may
188
-
experience slower performance when using Search. In clusters of that
189
-
size, we would recommend using Search in a limited fashion, setting
190
-
up a separate, dedicated cluster for Search data, or finding another
191
-
solution.
192
-
193
149
## Riak Data Types
194
150
195
151
When performing basic K/V operations, Riak is agnostic toward the actual
@@ -213,12 +169,6 @@ own.
213
169
with implementation details
214
170
*[Data Modeling with Riak Data Types][dev data model] - An object modeling example that relies on Riak Data Types.
215
171
216
-
> **Note**:
217
-
>
218
-
> Riak Data Types can be used in conjunction with Riak Search,
219
-
meaning that the data stored in counters, sets, and maps can be indexed
220
-
and searched just like any other data in Riak. Documentation on Data
221
-
Types and Search is coming soon.
222
172
223
173
### When to Use Riak Data Types
224
174
@@ -278,14 +228,10 @@ or you can write and run your own MapReduce jobs in
278
228
279
229
### When Not to Use MapReduce
280
230
281
-
***When another Riak feature will do** - Before even considering
282
-
using MapReduce, you should thoroughly investigate [Riak Search][usage search] or [secondary indexes][usage 2i] as possible
283
-
solutions to your needs.
284
-
285
231
In general, you should not think of MapReduce as, for example, Hadoop
286
232
within Riak. While it can be useful for certain types of
287
233
non-primary-key-based queries, it is neither a "Big Data" processing
288
-
tool nor an indexing mechanism nor a replacement for [Riak Search][usage search]. If you do need a tool like Hadoop or Apache Spark, you should
234
+
tool nor an indexing mechanism. If you do need a tool like Hadoop or Apache Spark, you should
289
235
consider using Riak in conjunction with a more suitable data processing
290
236
tool.
291
237
@@ -296,7 +242,7 @@ following problem: how do I know which keys I should look for? Secondary
296
242
indexes (2i) provide a solution to this problem, enabling you to tag
297
243
objects with either binary or integer metadata and then query Riak for
298
244
all of the keys that share specific tags. 2i is especially useful if
299
-
you're storing binary data that is opaque to features like [Riak Search][usage search].
245
+
you're storing binary data that is opaque.
300
246
301
247
*[Using Secondary Indexes][usage 2i] - A general guide to using 2i, along
302
248
with code samples and information on 2i features like pagination,
@@ -305,26 +251,16 @@ you're storing binary data that is opaque to features like [Riak Search][usage s
305
251
306
252
### When to Use Secondary Indexes
307
253
308
-
***When you require deep pagination** - At the moment, 2i's
309
-
deep pagination capabilities are more performant than those offered
310
-
by Search if you require pagination of more than 3-5 pages. This
311
-
will change, however, in the future, at which point we will
312
-
recommend using Search instead.
313
-
314
254
### When Not to Use Secondary Indexes
315
255
316
-
***For most querying purposes** - If your use case does not
317
-
involve deep pagination, we recommend Search over 2i for _all_
318
-
querying purposes.
319
256
***If you're using Bitcask** - 2i is available only in the
320
257
[LevelDB][plan backend leveldb] backend. If you'd like to use [Bitcask][plan backend bitcask] or the [Memory][plan backend memory] backend, you will not be able to use 2i.
321
258
322
259
## Mixed Approach
323
260
324
261
One thing to always bear in mind is that Riak enables you to mix and
325
262
match a wide variety of approaches in a single cluster. You can use
326
-
basic CRUD operations for some of your data, index some of your data to
327
-
be queried by Riak Search, use Riak Data Types for another subset, etc.
263
+
basic CRUD operations for some of your data, use Riak Data Types for another subset, etc.
328
264
You are always free to use a wide array of Riak features---or you can
329
265
use none at all and stick to key/value operations.
Copy file name to clipboardExpand all lines: content/riak/kv/3.2.0/developing/data-types.md
-9Lines changed: 0 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -262,12 +262,3 @@ $updateSet = (new \Basho\Riak\Command\Builder\UpdateSet($riak))
262
262
The pages listed above detail using Riak data types at the application level using Basho's [officially supported Riak KV clients](../client-libraries). For more on getting started with client libraries check out the [Developing with Riak KV: Getting Started](../getting-started) section.
263
263
264
264
All the examples use the bucket type names from above (`counters`, `sets`, and `maps`). You're free to substitute your own bucket type names if you wish.
265
-
266
-
## Data Types and Search
267
-
268
-
Riak data types can be searched like any other object, but with the
269
-
added benefit that your data type is indexed as a different type by Solr,
270
-
the search platform behind Riak Search.
271
-
272
-
In our Search documentation we offer a [full tutorial](../usage/searching-data-types) as well as a variety of [examples](../usage/searching-data-types/), including code
273
-
samples from each of our official client libraries.
0 commit comments