Skip to content

Conversation

@swamirishi
Copy link
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
@adoroszlai adoroszlai changed the title HDDS-14245. Optimize Prepare Batch looping to optimize delete range search using prefix count index structure HDDS-14245. Optimize search for deleted range using prefix count index structure Dec 26, 2025
Sign up for free to 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