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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 30.06.2014, 19:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
goshoom: Index fragmentation on xRef tables
Источник: http://dev.goshoom.net/en/2014/06/in...n-xref-tables/
==============

Building cross-references for code in Dynamics AX creates millions of records in xRef tables. It has also very negative impact on fragmentation of database indexes.

This is an example of indexes on xRefReferences table from a customer’s environment after rebuilding all cross references.



And here the same set of indexes a few minutes later after a rebuilding indexes:



If an index is heavily fragmented, it’s much slower to scan it and you’ll notice performance degradation of all queries using the index. It’s not unusual that opening Add-ins in the context menu in AOT takes several seconds just because of a simple check to xRef tables (to see whether cross-references exist for the given object). And because the index can’t be used effectively, of course.

It’s should be obvious that having right indexes isn’t sufficient – they also have to be in a good shape.

It’s wise to have a scheduled job to maintain fragmentation and statistics of all indexes, nevertheless you may also want to rebuild indexes for xRef tables immediately after updating cross references.



Источник: http://dev.goshoom.net/en/2014/06/in...n-xref-tables/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
Старый 01.07.2014, 00:21   #2  
sukhanchik is offline
sukhanchik
Administrator
Аватар для sukhanchik
MCBMSS
Злыдни
Лучший по профессии 2015
Лучший по профессии AXAWARD 2013
Лучший по профессии 2011
Лучший по профессии 2009
 
3,342 / 3563 (125) ++++++++++
Регистрация: 13.06.2004
Адрес: Москва
Не.. ну надо же... индексы сильно фрагментируются... . А я то все думал - почему после вставки "millions of records" система прямо жуть как хочет как минимум пересчитать статистику или индексы перестроить для таблиц, из которых впоследствии планируются много выборок.


Не удержался от сарказма в связи с тем, что автор не поленился узнать процент фрагментированности индексов, хотя в общем-то и так понятно - что после вставки такого количества записей - базе данных явно полагается чего-нибудь там перестроить для того, чтобы активно делать выборки по таблице.
__________________
Возможно сделать все. Вопрос времени
Старый 01.07.2014, 11:58   #3  
AraraT® is offline
AraraT®
Участник
1C
 
158 / 106 (4) +++++
Регистрация: 13.01.2006
Адрес: Республика Татарстан, г. Казань
Напомнило:
http://axapta.mazzy.ru/lib/querytuning/
__________________
Айрат Вильданов.
skype: vildanov.a
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
emeadaxsupport: SEPA affected objects Blog bot DAX Blogs 0 29.11.2013 13:11
axinthefield: Dynamics AX, Index Fragmentation, and You. Blog bot DAX Blogs 0 04.10.2013 05:18
axinthefield: Database Maintenance Strategies for Dynamics AX Blog bot DAX Blogs 0 02.08.2012 04:13
Rajdip's space: The mystery of "index" vs. "index hint" Blog bot DAX Blogs 0 20.04.2010 20:05
axperf: Create RecID index on tables with Created/Modified DateTime fields Blog bot DAX Blogs 0 20.06.2009 10:05

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

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

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