ripple, use same model as regular document and embedded.
supergiantrobot at me.com
Wed Oct 3 17:16:15 EDT 2012
Can Riak search help here?
On Oct 3, 2012, at 3:16 PM, Charlie Bowman wrote:
> I want to create a model that I can save to its own bucket, but also be able to embed it in another model. Is this possible with ripple?
> Specifically I want to create a Message model, that I can save and lookup easily. I also want to embed a copy of that class in a ReceivedMessage class. I would like to work with these models as such:
> message = Message.new
> message.body = 'foo'
> received = ReceivedMessage.new
> received.messages << message
> By doing this I know I have 2 copies of the message, but I'm alright with that. I'm optimizing for reads not storage space.
> My endgame is that I want to look up messages without looking through the recieved messages, and I want a user to quickly view all received messages without looking up each individual message.
> riak-users mailing list
> riak-users at lists.basho.com
More information about the riak-users