Skip to content

HDDS-14245. Optimize search for deleted range using prefix count index structure - #9560

Closed
swamirishi wants to merge 6 commits into
apache:masterfrom
swamirishi:HDDS-14245
Closed

HDDS-14245. Optimize search for deleted range using prefix count index structure#9560
swamirishi wants to merge 6 commits into
apache:masterfrom
swamirishi:HDDS-14245

Conversation

@swamirishi

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Currently in prepare batch to verify if an operation is still valid an O(n)check is performed on each and every deleteRange op that has occured after the operation. This is done for each operation in the batch and if all deleteRanges are going to be stacked at the end then the prepare batch can become an O(n2) operation making it unoptimal. This patch aims to create Index data structure to track all the deleteRange operations and provide an efficient way to check if a delete range operation exists or not. The delete ranges would also be popped out of the index structure as and when the delete range op gets executed.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-14245

How was this patch tested?

Added unit tests

Change-Id: I1cc243d0dadbe647ad9dc7b94822ba7dc6a83e1c
…by abstracting out implementation of each operation
Change-Id: Idf5b9a4b9f66eae41a9d832ddbf22e43d1027344
…on for optimization
Change-Id: Ia7655ff5148197be488a2c1151ec7fd1d6f9d452
…Operation
Change-Id: I4a7c62d8cc91173a1374ba5f3515f3c9ac99376f
…nges and simple logic
Change-Id: If659fd2cf71d76909cb81c4362e2e02d85930635
…earch using prefix count index structure
Change-Id: I704dab8380d1dd35faa2b9453ef90b439937e95b
@adoroszlaiadoroszlai changed the title HDDS-14245. Optimize Prepare Batch looping to optimize delete range search using prefix count index structureHDDS-14245. Optimize search for deleted range using prefix count index structureDec 26, 2025
@github-actions

Copy link
Copy Markdown

This PR has been marked as stale due to 21 days of inactivity. Please comment or remove the stale label to keep it open. Otherwise, it will be automatically closed in 7 days.

@github-actions

Copy link
Copy Markdown

Thank you for your contribution. This PR is being closed due to inactivity. If needed, feel free to reopen it.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@swamirishi