-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add merge local catalog delta ops to global catalog delta entry method (
#455) * Refactor constructors and add transaction handlers in storage code The commit modifies the Txn constructor to include buffer manager and background task processor. Additionally, instances of 'catalog_delta_entry' are now created only when there are operations, reducing redundancy. These changes make the constructor more organized, efficient and improve transaction handling. * Refactor content and input changes in transaction handlers This revision introduces significant adjustments in transaction handlers for the application. Constructs for 'CatalogDeltaOperation' and 'CatalogDeltaEntry' have been streamlined and erroneous type returns fixed. An explicit constructor for 'CatalogDeltaEntry' has been removed, minimizing redundancy while reducing the need to create instances when no operations are in queue. The changes ensure efficient transaction handling and organization in code structure. * Optimize transaction types and operations The commit focuses on refining the constructs of CatalogDeltaOperation and CatalogDeltaEntry in the transaction handlers. An undue CatalogDeltaEntry constructor has been eliminated leading to better performance when there are no operations in the queue. This revamp of transaction handling provides a more efficient and organized code structure. * Refactor CatalogDeltaEntry merge operations The Merge method has been moved from CatalogDeltaEntry to GlobalCatalogDeltaEntry and changed to take unique pointers instead of shared pointers, which increases efficiency. Additionally, some CatalogDeltaEntry objects were changed from shared pointers to unique pointers, optimizing memory usage and ownership. This commit provides a more efficient transaction handling process and optimized memory usage. * Refactor string formatting and logging in CatalogDeltaEntry Removed unused includes and updated string formatting in catalog_delta_entry.cppm. Changed logging messages and method of producing strings from string concatenation to string stream in catalog_delta_entry.cpp for improved efficiency and readability. Additionally, updated usage of underscore "_" to hash "#" in EncodeIndex methods, providing better consistency in encoding index patterns. --------- Co-authored-by: Jin Hai <[email protected]>
- Loading branch information
Showing
25 changed files
with
363 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.