Powershell Import-NAVApplicationObjectFile slow

Klappspaten
Member Posts: 22
Hi,
I am currently busy creating a Powershell script which automatically builds a development database.
The script pulls the Dynamics NAV 2018 standard objects from a git repository. We have an additional repository for our company's solution which stores the solution as DELTA files.
Now I use the DELTA files against the Dynamics NAV 2018 standard objects and create merged application objects.
All of this works flawlessly, now the time consuming part is kicking in:
I want to import the merged application objects to the database. I tried both variations:
Both approaches take more than an hour to complete.
Is there any way to speed up this process?
Thank you in advance.
I am currently busy creating a Powershell script which automatically builds a development database.
The script pulls the Dynamics NAV 2018 standard objects from a git repository. We have an additional repository for our company's solution which stores the solution as DELTA files.
Now I use the DELTA files against the Dynamics NAV 2018 standard objects and create merged application objects.
All of this works flawlessly, now the time consuming part is kicking in:
I want to import the merged application objects to the database. I tried both variations:
Get-ChildItem $merged_objects | Import-NAVApplicationObject -DatabaseName $target_database -SynchronizeSchemaChanges No
Get-ChildItem $merged_objects | Join-NAVApplicationObject -Destination .\merged_objects.txt -PassThru | Import-NAVApplicationObject -Database $target_database -SynchronizeSchemaChanges No
Both approaches take more than an hour to complete.
Is there any way to speed up this process?
Thank you in advance.
0
Best Answer
-
Hi Klappspaten,
the problem is caused by Load and unload the Dynamics NAV (Fin.exe) per Object.
A proper Way would be pack all objects to one Dumpfile before importing.
A other proper Way could be to create an import-Agent by object type to make it parallel like this
https://cloudblogs.microsoft.com/dynamics365/no-audience/2014/11/27/how-to-compile-a-database-twice-as-fast-or-faster/5
Answers
-
Hi Klappspaten,
the problem is caused by Load and unload the Dynamics NAV (Fin.exe) per Object.
A proper Way would be pack all objects to one Dumpfile before importing.
A other proper Way could be to create an import-Agent by object type to make it parallel like this
https://cloudblogs.microsoft.com/dynamics365/no-audience/2014/11/27/how-to-compile-a-database-twice-as-fast-or-faster/5
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