How to get all keys in a single node configuration

70 views
Skip to first unread message

cont...@complexityintelligence.com

unread,
Dec 20, 2009, 7:30:31 AM12/20/09
to project-voldemort
Hi,

We are trying to use V to manage the lexical inverse index of our
Mnemoo project (http://www.mnemoo.com).

We have a lot of keys stored in a V store, and now we would like to
delete all keys. For now the configuration is quite simple, a single
node (BDB for storage).

How is possible to get all keys and delete them. I've read on the ML
that there is no "delete all", so it's needed to delete key by key.

Is any code snippet available ? Thanks!

Bruce Ritchie

unread,
Dec 20, 2009, 5:29:47 PM12/20/09
to project-voldemort
I actually hit the same issue quite recently (http://groups.google.com/
group/project-voldemort/browse_thread/thread/2ba1f16969e86bc9#) and I
coded up a solution that I've asked to be added to the main voldemort
repository (http://code.google.com/p/project-voldemort/issues/detail?
id=185). The code can be downloaded from http://github.com/Omega1/voldemort
- it passes my limited test cases.


Regards,

Bruce Ritchie

On Dec 20, 7:30 am, "D...@ComplexityIntelligence.com"

cont...@complexityintelligence.com

unread,
Dec 21, 2009, 3:12:03 AM12/21/09
to project-voldemort
Thank you for your reply.

I hope that this feature will be added soon to main branch.

Meanwhile, to clear all store data, i manually deleted files in the
data directory. I don't know how much safe is this operation, but
i was inspired from a shell script in bin folder, that basically do
the same.

Best,

A.

On Dec 20, 11:29 pm, Bruce Ritchie <bruce.ritc...@gmail.com> wrote:
> I actually hit the same issue quite recently (http://groups.google.com/
> group/project-voldemort/browse_thread/thread/2ba1f16969e86bc9#) and I
> coded up a solution that I've asked to be added to the main voldemort
> repository (http://code.google.com/p/project-voldemort/issues/detail?

> id=185). The code can be downloaded fromhttp://github.com/Omega1/voldemort

bhupesh bansal

unread,
Dec 21, 2009, 11:28:26 AM12/21/09
to project-...@googlegroups.com
deleting bdb file will delete *All stores*, so be careful with that, I will try to merge bruce changes today :)

Best
Bhupesh

--

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



bhupesh bansal

unread,
Dec 21, 2009, 2:41:51 PM12/21/09
to project-...@googlegroups.com
okay looks good , Will merge it in .. 

Best
Bhupesh
Reply all
Reply to author
Forward
0 new messages