Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: Index strategies for column tables

$
0
0

Hi Lars,

   There maybe a bug in SPS7 v70 with indexAdvisor.py. When I try to use the dynamic parameter, the script fails with the following:

Creating database connection... done

Checking prerequisites... done

Starting analysis in dynamic mode at 17:51:57

Traceback (most recent call last):

  File "indexAdvisor.py", line 903, in <module>

    ia.advice()

  File "indexAdvisor.py", line 187, in advice

    results = self.colProvider.getResults()

  File "indexAdvisor.py", line 579, in getResults

    queries = self.__getPlanCacheQueries()

  File "indexAdvisor.py", line 650, in __getPlanCacheQueries

    return self.executeAndFetchAll(stmt)

  File "indexAdvisor.py", line 407, in executeAndFetchAll

    cur = self.__execute(stmt)

  File "indexAdvisor.py", line 420, in __execute

    cur.execute(stmt)

  File "/usr/sap/HDB/exe/linuxx86_64/HDB_1.00.70.00.386119_1342680/python_support/hdbcli/dbapi.py", line 351, in execute

    ret = self.__execute(operation)

  File "/usr/sap/HDB/exe/linuxx86_64/HDB_1.00.70.00.386119_1342680/python_support/hdbcli/dbapi.py", line 245, in __execute

    ret = self.__cursor.execute(operation, parameters=parameters, iscall=iscall, scrollable=self._scrollable)

hdbcli.dbapi.Error: (260, "invalid column name: The column 'M_SQL_PLAN_CACHE.SCHEMA_NAME' is invalid in the select list because the GROUP BY clause or an aggregation function does not contain it: line 1 col 57 (at pos 56)")

 

The default parameter "static" works ok, but it doesn't use the plan history. This results in some poor recommendations for indexes that I suspect would never be used.

Regards,

Bill


Viewing all articles
Browse latest Browse all 9165

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>