Freeing RowVector in Velox #5951
-
I'm trying to optimize the memory consumption of my velox program as I'm running out of memory on my local machine. I have a few RowVectors in my code that are no longer used, and freeing them would enable me to run the program on my local machine. Below I describe the code snippet in detail. The code below gradually generates a star schema starting from an initial wide table. In each iteration, I'm adding a key column to the current fact table generating the variable temp_table, which is then decomposed into a dimension table (using aggregation) and a new more concise fact table (projecting columns, and a window function over the key column). I have two questions:
Any inputs are appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Any help regarding this issue would be much appreciated! |
Beta Was this translation helpful? Give feedback.
-
@aarati-K : |
Beta Was this translation helpful? Give feedback.
@aarati-K :
temp_table.reset(nullptr) or just temp_table = nullptr should release the memory imo. The RowVectorPtr is just a regular shared_ptr. Once it goes out of scope, the memory would be released.