Start re-index as batch/scheduled job

teselink
Member Posts: 5
Sometimes the performance in Axapta is very bad.
One of the solutions to solve this problem is re-index. (We are working with the Dutch version of Axapta and the job that has to be run is called "herindexeren"). A mouseclick on "re-index" will start the job immediately. Does anyone know if there is a possibility in Axapta to start re-index as a batch- or scheduled job? A solution to start something in the SQL manager I am not interested. The re-index has to be done in Axapta.
:whistle: One solution I have in mind. Use a database on Linux or OS/400. It is a pity that Axapta only supports Oracle and MS SQL Server.
One of the solutions to solve this problem is re-index. (We are working with the Dutch version of Axapta and the job that has to be run is called "herindexeren"). A mouseclick on "re-index" will start the job immediately. Does anyone know if there is a possibility in Axapta to start re-index as a batch- or scheduled job? A solution to start something in the SQL manager I am not interested. The re-index has to be done in Axapta.
:whistle: One solution I have in mind. Use a database on Linux or OS/400. It is a pity that Axapta only supports Oracle and MS SQL Server.
0
Comments
-
From Main Menu click Administrator->Periodic->SQL Administration Form
-> Click Menu Item Button "Index Action" -> Choose Re-IndexIonutz0 -
Thanks for reply but I already know this action.
What I want is to run this action as a batch- or scheduled job.0 -
solution of your problem lies with the class sysSqlAdminClass may be you can explore thrugh it.0
-
Hi,
Usually it is not necessary to re-index on a regular basis.
As you may be aware, usually re-index is used to push any changes made to an index definition. Once an index is created, then SQL server/Oracle does a better job of handling index than the programmer.
Could you please elaborate on poor performance please.
Regards,
Harish MohanbabuHarish Mohanbabu
Long way to go before I sleep..0 -
Hi,
Forgot to mention this. You can run a re-index by using SqlDataDictionary class like -static void Reindex(Args _args) { SqlDataDictionary sqldd; ; sqldd = new SqlDataDictionary(); SQLDD.tableReindex(); }
You can try creating a batch class for the above job. For this, you might want to check this MSDN article -
http://msdn.microsoft.com/mbs/default.a ... singp1.asp
Hope this helps,
Harish MohanbabuHarish Mohanbabu
Long way to go before I sleep..0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions