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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 02.10.2006, 18:31   #1  
gb is offline
gb
Участник
 
42 / 15 (1) ++
Регистрация: 31.03.2005
? Adding index through SQL
Hello,

We have a very big table (close to 20 mil records now) and would like to add a new index there. Doing it through Axapta will take longer then if we would do it through SQL directly. Our operation is 24X7.

Plan:
1. create that index on the table in a test environment, export the table.
2. create that index on that table directly in SQL on production environment ( using same naming convention)
3. import the project into Production environment.

We hoped that Axapta will recognize that the index is already there and won't recreate it. Unfortunately, it didn't recoginze it and recreated it.

Question. Is there a way to register that index with Axapta somehow, like for example, SQLDictionary table where all fields are saved? Is it possbile at all?

I would appreciate any comments.
Thanks,
gb
Старый 02.10.2006, 18:40   #2  
Delfins is offline
Delfins
Участник
 
320 / 39 (2) +++
Регистрация: 20.09.2005
Адрес: Riga, Latvia
Axapta can not recognize, if it is own index. because while creating this index, axapta will always do re-create (because it is new)

I think not-re-create can be done only if you put whole application into to prod. BUT.. when this done - Synchronize always should be done (to be sure everything will work OK)
Старый 02.10.2006, 18:48   #3  
gb is offline
gb
Участник
 
42 / 15 (1) ++
Регистрация: 31.03.2005
I will try that. Synchronize is ok, because when you synchronize a table and there were no changes done to its structure including inexes, it won't rebuild the index. So, I guess the question is if it will accept that index as an existing one or will somehow realize that it was a change and will recreate it.

Thanks for the idea.
Regards,
gb
Старый 03.10.2006, 01:55   #4  
gb is offline
gb
Участник
 
42 / 15 (1) ++
Регистрация: 31.03.2005
Replacing the application folder and resynching the db drops that index and recreates it from scratch. It does basically the same way as simple import.

So the question remains. How does Axapta recognize that the index was added from SQL and not from Axapta. It almost looks like that there is some kind of info saved in a system table.

Any suggestions are appreciated.
Thanks,
gb
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
dynamicsusers: Making NAV use a certain index on SQL Server Blog bot DAX Blogs 0 21.08.2007 10:40
Dynamics AX: SQL Tuning: Table & Index Scans Blog bot DAX Blogs 0 20.07.2007 11:50
Dynamics AX: SQL Server, Heart of Dynamics AX Blog bot DAX Blogs 0 13.07.2007 18:00
dynamicsusers: NAV SQL Tuning - Covering Indexes Blog bot DAX Blogs 0 27.04.2007 17:10
aEremenko: Диагностика проблем при установке Microsoft Dynamics Ax 4.0 на Microsoft SQL Server 2005 Blog bot DAX Blogs 0 28.10.2006 16:01

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

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

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