madara icon indicating copy to clipboard operation
madara copied to clipboard

Investigate moving to `mdbx` instead of `rocksdb`

Open AbdelStark opened this issue 1 year ago • 16 comments

Description

Investigate and implement a storage backed by an mdbx database instead of rocksdb.

Another possibility would be to try directly using Papyrus storage.

Acceptance criteria

  • the implemented solution must pass all tests (unit, integration, end to end)
  • performance benchmarks must be provided with a comparison with current storage implementation

Resources

AbdelStark avatar Apr 18 '23 09:04 AbdelStark

There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a 👍 Because this issue is marked as stale, it will be closed and locked in 7 days if no further activity occurs. Thank you for your contributions!

github-actions[bot] avatar May 19 '23 08:05 github-actions[bot]

Will pick up this one @abdelhamidbakhta as we discussed

darmis007 avatar May 22 '23 11:05 darmis007

Will pick up this one @abdelhamidbakhta as we discussed

Assigned to you

AbdelStark avatar May 22 '23 11:05 AbdelStark

I can work on this.

h3lio5 avatar May 26 '23 15:05 h3lio5

@abdelhamidbakhta Hey could I work on this one? Would we want to replace rocksdb with mdbx completely or just add it as a new source?

dbejarano820 avatar Jun 15 '23 21:06 dbejarano820

@abdelhamidbakhta Hey could I work on this one? Would we want to replace rocksdb with mdbx completely or just add it as a new source?

Hey @dbejarano820 , assigned and yes I think you'd want to remove completely and assess performance improvements/degradation.

EvolveArt avatar Jun 15 '23 22:06 EvolveArt

I will continue to look into this, it's a pretty advanced spike... If anyone is interested in taking the lead, be my guest. I can collaborate.

dbejarano820 avatar Jun 17 '23 21:06 dbejarano820

Hi @abdelhamidbakhta, could you please assign it to me? I'd like to take it on.

shamb0 avatar Jun 21 '23 09:06 shamb0

You can do that in addition to the try-runtime work ? I would prefer to avoid multiple tasks in parallel. Especially in this case where both are important, so I would prefer to avoid a bottleneck with one person working on the two in parallel.

AbdelStark avatar Jun 21 '23 09:06 AbdelStark

@abdelhamidbakhta, I plan to pick up this task after closing the try-runtime. Testing is in progress, and I expect to close it today or tomorrow. I am confident that I can handle it. 😄

shamb0 avatar Jun 21 '23 10:06 shamb0

@abdelhamidbakhta, I plan to pick up this task after closing the try-runtime. Testing is in progress, and I expect to close it today or tomorrow. I am confident that I can handle it. 😄

let's go then!

AbdelStark avatar Jun 21 '23 11:06 AbdelStark

@abdelhamidbakhta, Do we need to do this investigations on mc-db (crates/client/db/Cargo.toml) ?

shamb0 avatar Jun 25 '23 06:06 shamb0

@abdelhamidbakhta, Do we need to do this investigations on mc-db (crates/client/db/Cargo.toml) ?

Yes, any progress so far ?

AbdelStark avatar Jul 03 '23 12:07 AbdelStark

  • I have completed the reference study of the Papyrus storage database.

    https://github.com/starkware-libs/papyrus/blob/main/crates/papyrus_storage/src/db/mod.rs

  • I have a high-level overview of the requirements and design.

  • I am currently preparing the database adoption layer at Madara in crates/client/db/src/lib.rs.

  • I will soon attempt to commit the draft pull request.

shamb0 avatar Jul 06 '23 06:07 shamb0

  • I have completed the reference study of the Papyrus storage database. https://github.com/starkware-libs/papyrus/blob/main/crates/papyrus_storage/src/db/mod.rs
  • I have a high-level overview of the requirements and design.
  • I am currently preparing the database adoption layer at Madara in crates/client/db/src/lib.rs.
  • I will soon attempt to commit the draft pull request.

Awesome! looking forward to it!

AbdelStark avatar Jul 06 '23 07:07 AbdelStark

There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a 👍 Because this issue is marked as stale, it will be closed and locked in 7 days if no further activity occurs. Thank you for your contributions!

github-actions[bot] avatar Sep 22 '23 00:09 github-actions[bot]

repository archived in favor of https://github.com/madara-alliance/madara

tdelabro avatar Aug 02 '24 18:08 tdelabro