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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 27.03.2010, 14:05   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
Dynamics CRM Tools: Empty AsyncOperationBase table when it is too big
Источник: http://mscrmtools.blogspot.com/2010/...me-across.html
==============

With one of my client, I came across a particularly disturbing issue. The symptoms were:
  • 2 minutes to delete a single record
  • Timeout on restarting the Microsoft CRM asynchronous processing service
  • Unable to display a view on workflows or system tasks.
  • Incredibly long time wait for any SQL statement on AsyncOperationBase table

Passing a script on the organization database to identify the sizes of tables, I realized that two tables seem particularly large:
  • AsyncOperationBase (800 000 lines)
  • DuplicateRecordBase (15 000 000 lines)
The total size of the database was 12GB.



After passing through the Microsoft support for a procedure to purge these tables, the answer was procedures that would require whole days of SQL processing, which was clearly not an option for a production server.



In agreement with my client, we decided to delete and recreate these tables instead of trying to empty them.



WARNING! The following procedure is of course unsupported and provided as is without any warranty.




It has the following constraints:

  • No job systems, workflow and detection of duplicates job will be retained.

  • All running workflows will also be deleted
!!! THEREFORE PLEASE START BY PERFORMING A BACKUP OF YOUR ORGANIZATION DATABASE !!!



The table that we want to delete the table is AsyncOperationBase. First thing to do, identify all the dependencies for that table. To do this, start deleing the table. The following screen appears:







IDENTIFYING THE DEPENDENCY OF THE TABLE ASYNCOPERATIONBASE
Click the dependencies in the bottom right. Here is the list of dependent components:







Before deleting the table AsyncOperationBase, so we'll have to delete all dependent items.



SCRIPT GENERATION TO RECREATE DEPENDANT ELEMENTS
Before that, he'll have to create the SQL scripts that will allow us to recreate the elements that will be deleted.
Right click on the database of the CRM organization, Tasks, Generate Scripts.







In the options for generating scripts, make sure you turn on all options for tables and views as to the screenshot below.







Then select the items that will recreate. We need tables, views and user defined functions.







Follow the wizard to generate scripts for the complete script to recreate the elements that we remove. When selecting items, you have therefore chosen only those items that were listed in the dependencies of AsyncOperationBase table.



DELETION OF DEPENDENT ELEMENTS
You can now delete items that were listed in the dependencies table AsyncOperationBase. Delete the elements with no dependencies first to go back to the table AsyncOperationBase.



RECREATE DELETED ELEMENTS
Once all the deleted items, use the script generated previously to recreate the elements that have been deleted.



CONCLUSION
Normally, you should have a "brand new CRM" (at least for system tasks, workflow logs, bulk deletion jobs, etc..).



For information after this procedure:
  • The size of the database is 2GB
  • The asynchronous processing service restarts in no time
  • Record deletion is very fast
  • Fast display of system tasks, workflow logs, etc.
After two days of intensive use of the CRM application in terms of workflow, bulk deletion, data import, there is no problem found.



Some tips to avoid swell these tables:
  • Planning tasks to delete bulk to clean the table of system tasks regularly.
  • Disable the detection rules that are duplicates or not involving fields ever used. By default, if you create many prospect without email address, default duplicate detection rule applies and therefore generates many rows in the table DuplicationRecordBase.



Источник: http://mscrmtools.blogspot.com/2010/...me-across.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
CRM DE LA CREME! CRM 4.0 Disaster Recovery Blog bot Dynamics CRM: Blogs 2 26.02.2016 08:23
CRM DE LA CREME! Configuring Microsoft Dynamics CRM 4.0 for Internet-facing deployment Blog bot Dynamics CRM: Blogs 0 18.08.2009 11:05
Microsoft Dynamics CRM Team Blog: List Web Part for Microsoft Dynamics CRM 4.0 Deployment Scenarios Blog bot Dynamics CRM: Blogs 0 30.01.2009 22:05
Microsoft Dynamics CRM Team Blog: Microsoft Dynamics CRM 4.0 Bookshelf Blog bot Dynamics CRM: Blogs 1 22.01.2009 04:46
Microsoft Dynamics CRM Team Blog: (Simplified) Pivot Table Integration Blog bot Dynamics CRM: Blogs 0 27.09.2008 02:05

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

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

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