Write millions of documents in Riak

What is the best way to add a ton of documents to riak? Let's say there are millions of product records that change very often (prices, ...), and we want to update them all very often. Is there a better way than replacing keys one by one in Riak? Something like a voluminous set of 1000 documents at once ...

+4
source share
1 answer

Unfortunately, Riak does not have any mass operations, so you need to do this by updating each object individually. If your updates, however, come in packages, it might be worth revising your data model. If you can de-normalize your products, perhaps by storing a number of products in one object, you can probably reduce the number of updates that need to be done by grouping them, thereby reducing the load on the cluster.

Riak , . - , , , K/V.

+2

Source: https://habr.com/ru/post/1532843/


All Articles