forked from greenplum-db/diskquota-archive
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor diskquota local_table_stats_map (#34)
During initialization, diskquota used a non-optimal structure for the local hashmap local_table_stats_map. In a hashmap, there is quite a significant overhead for each entry. Therefore, a large number of small entries led to increased RAM consumption during cluster startup. Change the specified structure, making the table oid as the key, and an array of sizes by segments as the value. This significantly reduces the amount of memory consumed, because now there will be SEGCOUNT times fewer records. Also fix a small bug with duplicate oid tables in the active_oids string array in the dispatch_rejectmap function. Ticket: ADBDEV-6442
- Loading branch information
Showing
3 changed files
with
65 additions
and
83 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