Additional query patterns
Applies to: Kyvos Enterprise Kyvos Cloud (SaaS on AWS) Kyvos AWS Marketplace
Kyvos Azure Marketplace  Kyvos GCP Marketplace Kyvos Single Node Installation (Kyvos SNI)
Kyvos needs existing query patterns to provide appropriate recommendations. You can define additional query patterns to be used as input by the recommendation system to recommend both partition and aggregation strategies. Define query patterns in addition to or instead of doing a test data process and creating queries to fine-tune those recommendations.
When you are defining a smart aggregation strategy, you can add additional query patterns that group by, summarize on, or filter by the fields you specify. In the Query Patterns dialog, the checkboxes are active for the fields that you can use. For example, you may be able to filter by or group by a dimension, attribute, or level. Then you can summarize or filter using measures. Numbers are displayed next to the column headings to let you know how many fields are used for grouping, summarizing, or filtering.Â
Viewing query patterns
To view the query patterns, perform the following steps.Â
Click the Actions menu (...) next to Revert and Save.
Select Query Details > Set Query Patterns. Â
The Query Patterns dialog box is displayed. You must follow the instructions starting from step 6 mentioned in the procedure (To define query patterns) that follows.Click the Actions menu (...) and click Get Recommendations.Â
In the Input tab, click the Add additional query patterns link. Follow the instructions starting from step 6 in the procedure (To define query patterns) that follows.
While viewing the semantic model, click Refine, then Aggregation Strategy, and follow the steps in the procedure that follows.
Defining query patterns
To define query patterns, perform the following steps.
From the Toolbox, choose Semantic Models.
Select a semantic model and click Refine.
Click the Aggregation Strategy tab.
Choose a mode:Â Smart.Â
For inputs, click the Actions menu (...) and click Get Recommendations.Â
In the Input tab, click the Add additional query patterns link.
In the Query Patterns dialog, click the checkboxes to group by, summarized on, or filter by the various fields. You can scroll down or use search to find the fields you want to use.
You can also collapse all or select all fields to group by, summarize on, or filter by.
Once you have created a query pattern, you can click the icon near the bottom left of the dialog box to copy it.Â
After you define your query pattern, click Save. The query is automatically named.
To change the name of the query pattern, right-click the query name, choose Rename, then enter a new name.
Click Close and finish configuring your smart strategy using smart mode.
After you have added additional query patterns, you can choose either Recommend strategy and select Fresh aggregates or Additional aggregates. Then, you should do a full build to see the results.
Adding additional query patterns
To add additional query patterns, perform the following steps.Â
While viewing the Query Patterns dialog box, click the Plus icon next to Query Patterns.
Start creating the new query pattern.Â
Click Save when you have finished.Â
Adding additional query patterns
To remove query patterns, perform the following steps.
While viewing the Query Patterns dialog box, click Search and type a name if needed to search for the query you want to remove.
Right-click the query pattern to remove and click Delete.Â
Click Delete to confirm.
Related topics
Copyright Kyvos, Inc. All rights reserved.