AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 22.03.2014, 03:42   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
axStart: Obsolete index
Источник: http://www.axstart.com/obsolete-inde...obsolete-index
==============

We all know indexes on AX tables will improve performance when querying these tables. There are all kinds of fancy features such as parameter sniffing, trace flags, etc. But if we look for example at the ledger Journal Trans table you will start thinking that maybe core dynamics AX has added too many indexes.

There are 27 indexes in AX 2012 R2. So what’s next…

These indexes are added, when specific features in AX are created. But do you use these features? Even when the configuration key is turned off the index is still there. Trust me, to maintain 27 indexes on a table is a huge overload. So how can we get right of these indexes?

The trick is to change the property Enabled to False. Next time you synchronize the database, they will disappear. But now you have to determine the obsolete indexes. I can give you some guidance:

  • Unique indexes are never obsolete
  • Indexes with 0 seeks are really not used. But check this over a longer period.
  • Indexes with more updates then seeks are expensive.
  • How unique is this index?
Find the answers to these questions and you know if it is obsolete. You have to investigate the sys.dm_db_index_usage_stats in SQL. In case this is too complex for you, an alternative could be the Kaya Performance Dashboard. This will collect all your data so you only have to set the property Enabled to False on the index in the AOT.



I can guarantee that the performance will double.



Источник: http://www.axstart.com/obsolete-inde...obsolete-index
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
Старый 23.03.2014, 09:09   #2  
Vadik is offline
Vadik
Модератор
Аватар для Vadik
Лучший по профессии 2017
Лучший по профессии 2015
 
3,631 / 1853 (69) ++++++++
Регистрация: 18.11.2002
Адрес: гражданин Москвы
Цитата:
Сообщение от Blog bot Посмотреть сообщение
I can guarantee that the performance will double
Мамой клянусь! (с)
__________________
-ТСЯ или -ТЬСЯ ?
Старый 23.03.2014, 22:14   #3  
gl00mie is offline
gl00mie
Участник
MCBMSS
Most Valuable Professional
Лучший по профессии 2017
Лучший по профессии 2015
Лучший по профессии 2014
Лучший по профессии AXAWARD 2013
Лучший по профессии 2011
Лучший по профессии 2009
 
3,684 / 5803 (201) ++++++++++
Регистрация: 28.11.2005
Адрес: Москва
Записей в блоге: 3
Цитата:
Сообщение от Blog bot Посмотреть сообщение
These indexes are added, when specific features in AX are created. Even when the configuration key is turned off the index is still there. Trust me, to maintain 27 indexes on a table is a huge overload. So how can we get right of these indexes? The trick is to change the property Enabled to False.
С одной стороны, конечно, спасибо за статью, а с другой, какой-то странный вывод делает автор: из контекста напрашивается решение "повесьте конфигурационные ключи на индексы", а не "отрубите их совсем".
Цитата:
Сообщение от Blog bot Посмотреть сообщение
I can guarantee that the performance will double.
- Вы можете гарантировать, что я получу за этот фильм премию Оскар?
- Я могу гарантировать все что угодно!
(с) Футурама
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
axStart: Microsoft Dynamics AX Diagnostic Framework (Beta) tool Blog bot DAX Blogs 0 22.03.2013 16:11
axStart: Cluster index Blog bot DAX Blogs 0 23.09.2012 00:11
axStart: Get in conrtol with Sharepoint DB names Blog bot DAX Blogs 0 29.08.2012 14:11
doens.be: Index vs Index hint Blog bot DAX Blogs 0 28.01.2011 23:14
Rajdip's space: The mystery of "index" vs. "index hint" Blog bot DAX Blogs 0 20.04.2010 20:05

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 14:08.