All Products
Search
Document Center

Quick BI:QueryCubeOptimization

Last Updated:Jan 23, 2025
This topic is generated by a machine translation engine without any human intervention. ALIBABA CLOUD DOES NOT GUARANTEE THE ACCURACY OF MACHINE TRANSLATED CONTENT. To request a human-translated version of this topic or provide feedback on this translation, please include it in the feedback form.

Queries dataset optimization suggestions.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
WorkspaceIdstringYes

The workspace ID.

95296e95-ca89-4c7d-8af9-dedf0ad0****

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

D787E1A3-A93C-424A-B626-C2B05DF8D885
Resultarray<object>
Dataobject
CubePerformanceDiagnoseModelobject

The diagnostic information about the dataset.

CubeIdstring

The dataset ID.

3e45b61a-9ba8-4c7c-8248-8dbe69945636
CubeNamestring

The name of the dataset.

test
QueryTimeoutCountinteger

The number of times that the chart query times out.

1
RepeatSqlQueryPercentstring

The proportion of duplicate queries.

0.3
WorkspaceNamestring

The name of the workspace.

eco0sh0prods
WorkspaceIdstring

The workspace ID.

6ea74bff-c818-4188-b462-dbb45a24dbac
RepeatQueryPercentNumdouble

The number of duplicate queries.

2
RepeatQueryPercentstring

The proportion of duplicate queries.

0.1
QuickIndexCostTimeAvgdouble

The average time consumed by the Quick engine query.

1
QuickIndexQueryCountinteger

The number of times that the Quick engine is hit.

2
CacheCostTimeAvgdouble

The average duration of cache hits.

1
CacheQueryCountinteger

The number of cache hits.

2
RepeatSqlQueryCountinteger

The number of times the query is repeated.

2
CostTimeAvgdouble

The average query duration associated with the SQL pattern.

1.0
QueryCountAvgdouble

The average number of queries.

2
QueryCountinteger

The number of queries.

50
QueryTimeoutCountPercentdouble

The percentage of timeout times for chart queries.

0.3
QueryOverTenSecPercentNumdouble

The percentage of queries that exceed 10s.

0.3
QueryOverFivePercentNumdouble

The percentage of the number of queries that exceed the 5S.

0.1
QueryOverTenSecPercentstring

The percentage of queries that exceed 10s.

0.1
QueryOverFiveSecPercentstring

Query the proportion of more than 5S.

0.5
AdviceTypestring

The type of the suggestion. Valid values:

  • OPEN_CACHE: Open cache.
  • OPEN_QUICK_ENGINE: Open FAST Cache.
  • INCREASE_CACHE_TIME: Increase the cache time.
OPENQUICKENGINE
Successboolean

Indicates whether the request was successful. Valid values:

  • true: The request was successful.
  • false: The request failed.
true

Examples

Sample success responses

JSONformat

{
  "RequestId": "D787E1A3-A93C-424A-B626-C2B05DF8D885",
  "Result": [
    {
      "CubePerformanceDiagnoseModel": {
        "CubeId": "3e45b61a-9ba8-4c7c-8248-8dbe69945636",
        "CubeName": "test",
        "QueryTimeoutCount": 1,
        "RepeatSqlQueryPercent": "0.3",
        "WorkspaceName": "eco0sh0prods",
        "WorkspaceId": "6ea74bff-c818-4188-b462-dbb45a24dbac",
        "RepeatQueryPercentNum": 2,
        "RepeatQueryPercent": "0.1",
        "QuickIndexCostTimeAvg": 1,
        "QuickIndexQueryCount": 2,
        "CacheCostTimeAvg": 1,
        "CacheQueryCount": 2,
        "RepeatSqlQueryCount": 2,
        "CostTimeAvg": 1,
        "QueryCountAvg": 2,
        "QueryCount": 50,
        "QueryTimeoutCountPercent": 0.3,
        "QueryOverTenSecPercentNum": 0.3,
        "QueryOverFivePercentNum": 0.1,
        "QueryOverTenSecPercent": "0.1",
        "QueryOverFiveSecPercent": "0.5"
      },
      "AdviceType": "OPENQUICKENGINE"
    }
  ],
  "Success": true
}

Error codes

HTTP status codeError codeError messageDescription
400Internal.System.ErrorAn internal system error occurred.An internal system error occurred.

For a list of error codes, visit the Service error codes.