-
Partition Table Memory Usage
I’m seeing some weird behaviour with querying a partition table (partitioned by month)
This table has 414 columns, so each partition (if we select all columns is about 25 GB). This is a special table (not dealing with this many columns regularly).
rawData:select from myPartitionTable where month in 2022.11m
This query runs almost instantly, and when I check .Q.w[], it only uses 2GB. This was surprising to me, as I thought it would load the entire partition into memory given I didn’t select any specific columns, so I was expecting about 25GB of memory usage.
However, I then try to run this:
rawDataFiltered:select from rawData where date>2022.11.03
and I ran out of memory. After playing around with this and increasing the memory limit, it seems like when running this query, it loads the entire partition into memory (my memory usage skyrockets to close to 25GB). Is what I’m describing correct? How does KDB behave with regards to loading partitions into memory?
Log in to reply.