dice icon indicating copy to clipboard operation
dice copied to clipboard

Add support for command `DUMP`

Open arpitbbhayani opened this issue 1 year ago • 12 comments

Add support for the DUMP command in DiceDB similar to the DUMP command in Redis. Please refer to the following commit in Redis to understand the implementation specifics - source.

Write unit and integration tests for the command referring to the tests written in the Redis codebase 7.2.5. For integration tests, you can refer to the tests folder. Note: they have used TCL for the test suite, and we need to port that to our way of writing integration tests using the relevant helper methods. Please refer to our tests directory.

For the command, benchmark the code and measure the time taken and memory allocs using benchmem and try to keep them to the bare minimum.

arpitbbhayani avatar Aug 09 '24 04:08 arpitbbhayani

Hey. I would like to take this up!

SyedMa3 avatar Aug 09 '24 06:08 SyedMa3

@SyedMa3 Go for it.

arpitbbhayani avatar Aug 09 '24 16:08 arpitbbhayani

DUMP Command Design Doc

Created a design document to be sure about the implementation. Can you please go through can provide comments? Thanks.

Quick Queries:

  1. Should we include TTL in the response?
  2. Should we include DiceDB version in the response?

cc: @arpitbbhayani @JyotinderSingh @soumya-codes @yashs360

PS: Please request access for editing/commenting on the doc since I do not have your emails.

SyedMa3 avatar Aug 11 '24 20:08 SyedMa3

@SyedMa3 are you working on this? I would like to work on this issue.

ashwaniYDV avatar Aug 20 '24 05:08 ashwaniYDV

Hey @ashwaniYDV I am currently working on it. Waiting on maintainers to provide comments. I will remind them again.

SyedMa3 avatar Aug 20 '24 06:08 SyedMa3

hi @SyedMa3 Desing doc LGTM. @JyotinderSingh can review this.

ashwaniYDV avatar Aug 20 '24 07:08 ashwaniYDV

Hey @ashwaniYDV I am currently working on it. Waiting on maintainers to provide comments. I will remind them again.

Apologies, this skipped my mind. @soumya-codes could you also take a look?

JyotinderSingh avatar Aug 20 '24 07:08 JyotinderSingh

@ashwaniYDV Hey. You can continue on this. Can't work this week, therefore un-assigning myself.

SyedMa3 avatar Aug 22 '24 06:08 SyedMa3

@JyotinderSingh sorry missed this. Will take a look right away.

soumya-codes avatar Aug 22 '24 07:08 soumya-codes

@soumya-codes @JyotinderSingh please assign it to me, would like to work on this.

lucifercr07 avatar Aug 22 '24 18:08 lucifercr07

Hi @soumya-codes / @JyotinderSingh any work happening on this ? Would be great to work on this if possible

sbshah97 avatar Aug 28 '24 23:08 sbshah97

@lucifercr07 ^^

AshwinKul28 avatar Sep 08 '24 12:09 AshwinKul28

@lucifercr07 I have tried to implement this command. Can you assign this to me?

TheRanomial avatar Sep 20 '24 11:09 TheRanomial

@TheRanomial assigned, thanks

lucifercr07 avatar Sep 20 '24 12:09 lucifercr07

#633 raised a PR for the issue. @lucifercr07 kindly review it.

TheRanomial avatar Sep 20 '24 14:09 TheRanomial

Hello @TheRanomial,

There has been no activity on this issue for the past 5 days. It would be awesome if you keep posting updates to this issue so that we know you are actively working on it.

We are really eager to close this issue at the earliest, hence if we continue to see the inactivity, we will have to reassign the issue to someone else. We are doing this to ensure that the project maintains its momentum and others are not blocked on this work.

Just drop a comment with the current status of the work or share any issues you are facing. We can always chip in to help you out.

Thanks again.

arpitbbhayani avatar Oct 03 '24 14:10 arpitbbhayani

#633 referenced this issue and has been successfully merged and closed.

TheRanomial avatar Oct 03 '24 14:10 TheRanomial

Closing, merged as part of #633

lucifercr07 avatar Oct 03 '24 16:10 lucifercr07