Skip to main content
Question

Is there any better way to improve performance of the TOPK-Projections?

  • August 25, 2019
  • 1 reply
  • 7 views

arun_aiyadurai

We have some tables which are created in temporal model. For that I believe TOPK projections could be helpful. However refreshing and creating a fresh new topk projection takes lot of time especially table with 800K + records. Is there any best practices for creating and managing TOPK projections to improve the performance. Additionally, sometimes when using TOPK projections, the query hits the MaxOptMemMB although we set the size this to 400MB.

1 reply

Vertica_Curtis
Forum|alt.badge.img+1
  • Participating Frequently
  • August 25, 2019

Is the table partitioned? That might improve the performance, and allow it some "breathing room" for the calculation. The order by clause of the projection is also gonna have a pretty significant impact, as well as the "depth" of the top-k. So, if you're drilling down a bunch of columns into the top-k, it's gonna have to do a lot of work as well. Can you provide some more specifics about what you're creating and what it looks like?