Doubts

23 views
Skip to first unread message

Maira Stella da Silva

unread,
Nov 20, 2012, 6:43:52 PM11/20/12
to project-...@googlegroups.com
Hello,

I'm a computer science brazilian student, and now I and my friend are searching about Project Voldemort. We are with some doubts about the key-value database. We would like to know how to get all the data, and how the database is organized.

We tried the commands:

put "hello" "world"
put "hello" "day"

And after, we tried to get all the values, but the Voldemort shows only the last value.
How can we insert more than one value?

How could be a "select" in the project Voldemort?

Regards,
Maira Stella da Silva

Geir Magnusson Jr.

unread,
Nov 20, 2012, 8:52:22 PM11/20/12
to project-...@googlegroups.com
have no doubts! :)

Voldemort is doing the right thing - it keeps one value for each key.

So when you did :

put "hello" "world"

and then asked for the value of "hello" you would have gotten "world"

When you then did

put "hello" "day"

you replaced "hello" with "day"...

geir
> --
> You received this message because you are subscribed to the Google Groups "project-voldemort" group.
> To unsubscribe from this group, send email to project-voldem...@googlegroups.com.
> Visit this group at http://groups.google.com/group/project-voldemort?hl=en.
>
>

Geir Magnusson Jr.

unread,
Nov 20, 2012, 8:53:01 PM11/20/12
to project-...@googlegroups.com

On Nov 20, 2012, at 8:52 PM, "Geir Magnusson Jr." <ge...@pobox.com> wrote:

> have no doubts! :)
>
> Voldemort is doing the right thing - it keeps one value for each key.
>
> So when you did :
>
> put "hello" "world"
>
> and then asked for the value of "hello" you would have gotten "world"
>
> When you then did
>
> put "hello" "day"
>
> you replaced "hello" with "day"...

whoops...

you replaced "world" with "day"...

Carlos Tasada

unread,
Nov 21, 2012, 5:01:57 AM11/21/12
to project-...@googlegroups.com
Hi Maira,

You must think of Voldemort as a Key-Value system, something like a distributed Map. As Geir said, it's doing the correct thing.

Regards,
Reply all
Reply to author
Forward
0 new messages