Hi JerLucid,
Yes you are correct, if the limit is exceeded it is possible to merge data from memory to disk column by column to minimise any memory peaks. The wdb.q script contains three merge functions; mergebypart is optimum when you have many small partitions, mergebycol is optimum when the partition chunks are big, and mergehybrid works out which is the best way to merge the partition chunk.
I would recommend the mergehybrid function as this will cover both scenarios. In the case of a partition chunk over the rowcount/bytesize limit, the chunk will be merged column by column, otherwise if it is within the rowcount/bytesize limit the entire partition chunk will be merged. Using the hybrid function should minimise any memory peaks. If you have any further questions feel free to reach out.
Thanks,
Cianan Richman
Data Intellect
--
www.aquaq.co.uk
www.aquaq.co.uk/blog
www.aquaq.co.uk/training
---
You received this message because you are subscribed to a topic in the Google Groups "AquaQ kdb+/TorQ" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kdbtorq/jJvKaR1hFcE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kdbtorq+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/kdbtorq/87c17c99-1dd6-4ba6-aa73-5f6f5a4394ean%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/kdbtorq/049ec9f4-acf7-4e73-8e8e-76487e1020e8n%40googlegroups.com.