Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

Commit

Permalink
Free profile objects when cutting a row group (#746)
Browse files Browse the repository at this point in the history
  • Loading branch information
kolesnikovae authored Jun 5, 2023
1 parent d0395d9 commit 50a6d5e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/phlaredb/profiles.go
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,10 @@ func (pl *profilesIndex) cutRowGroup(rgProfiles []*schemav1.Profile) error {

for _, ps := range pl.profilesPerFP {
// empty all in memory profiles
for i := range ps.profiles {
// Allow GC to evict the object.
ps.profiles[i] = nil
}
ps.profiles = ps.profiles[:0]

// attach rowGroup and rowNum information
Expand Down

0 comments on commit 50a6d5e

Please sign in to comment.