riak

"Life Beyond Transactions" Entity-Message-Activity Model in Practice?

Over vacation I read Pat Helland's "Life Beyond Transactions" (yes, vacation was that good :). To sum it up briefly, it advocates limiting the scope of transactions to a single entity and then using groups of "activities" that have the ability to update the entity or cancel a task anytime a change takes place that would make that task in...

How can I implement Pre- and Post-Commit Hooks in Riak?

There is but scant information on the web as to how to actually implement these features of Riak besides this blog post and a few others. Are any client libraries (ripple etc.) capable of receiving messages via the hook so that working with the changed data in the app (i.e. outside of Riak) becomes possible? Thanks. ...

Is key-value store database a good option for full-text search storage?

Hi all, Would it be a good option to use key-value store database like cassandra and riak for storing your texts, which will be used for full-text search? If it is not recommendable, what are the reason for not going this path? Anybody has any experience on using key-value store for full-text search store? Thanks for sharing. ...

What is the scope of javascript callback and anonymous functions?

I have written the following code using node.js and riak-js. I have a recursive function walk that should be a list of JSON documents, but instead returns an empty list... why? how to fix? require('riak-js'); var walk = function(bucket, key, list){ if(list == undefined){ var list = new Array(); } db.get(bucket, key)(functi...

Need help with riak-js

I'm a newbie with node.js and riak, trying to use riak-js. I wrote the following coffeescript, to create N entries with the squares of integers 1..N. The script works fine for N=10. If I put a console.log() callback in the db.get() I can print the squares of 1..10. db = require('riak-js').getClient({debug:false}) N = 10 for i in [1..N...

Document vs key-value databases?

Possible Duplicate: Difference between Document-based and Key/Value-based databases? What are the pros and cons of document (mongodb/couchdb) and key-value (riak/redis) databases? Aren't document databases more powerful than simple key-value databases? Why would I use for example riak over couchdb that seems more powerful? ...