AWS timestream performance is slow with large number of values for a dimension filter in query

0

We have a SaaS product in which we have tenant wise statistics over time period. We tried ingesting them to AWS timestream with partitioning being on "tenant" dimension. In our query, we are supplying a filter on dimension with over 6k values e.g. filterDimension IN (val1, val2, .... val6000). We load tested this query and the response time always seem to be greater than 15 seconds, sometimes even reaching 25 seconds. We also tried partitioning on a dimension that contains the date (YYYY-mm-dd) for the stat, but the performance degraded further with this change with response timings crossing the 30 seconds mark. Since, AWS timestream only allows custom partition over a single dimension only, is there any way to improve performance here?

질문됨 4달 전412회 조회
2개 답변
0

In our use-case, the only filter that is constant across all queries is the tenant dimension, but whenever there will be a scenario of filtering on that additional filterDimension column with higher number of matching values, we are encountering higher query latencies. This additional filterDimension cannot be included in the custom partitioning keys since it only allows one dimension currently, which will be tenant for us. So what will be the possible solution for this particular scenario?

답변함 3달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠