Upgrade 2.5/2.6 TO 4.0

ondina
Member Posts: 9
Hi
I need some help.
I have a DB in 2.5/2.6 and I upgrade the objects to 4.0
Now I need to move data from old database to the new database.
I need to move 20 000 000 of records that are in table 17.
So, I created a temp table just like table 17 in the new database, then with a DTS I put some record in the temp table, then whit a codeunit I went to get the records of the temp table and inserted the records in the table 17.
I spend 5 days to insert 4 000 000 of record in the new database and it is still running.
What I want to know is if there is anything that I can do to make the process run faster.
Thanks,
Dina
I need some help.
I have a DB in 2.5/2.6 and I upgrade the objects to 4.0
Now I need to move data from old database to the new database.
I need to move 20 000 000 of records that are in table 17.
So, I created a temp table just like table 17 in the new database, then with a DTS I put some record in the temp table, then whit a codeunit I went to get the records of the temp table and inserted the records in the table 17.
I spend 5 days to insert 4 000 000 of record in the new database and it is still running.
What I want to know is if there is anything that I can do to make the process run faster.
Thanks,
Dina
0
Comments
-
If you are upgrading the Navision way, then you (almost) don't have to transfer any data. You open the 2.6 db in a 4.0 client and import the 4.0 objects in this db.
On the installation cd there should be a dir named \UPGTK\Doc with info about additional tasks to eg. fill dimension tables and other new stuff in 4.00 -
0
-
Hi,
No, I'm not upgrading the Navision way. I had talk ed with some one in navision, and for this especial case it was said to not do it.0 -
Maybe you can try to disable all secondary keys. And enable them after the import.0
-
It's an all out BAD idea to use DTS for your upgrade, that spells all kinds of disaster, especially if you're doing it for your GL Entries. If someone at Microsoft is suggesting this then I guess they know what they are talking about, but you will have to get them directly involved onsite.
What I can think of though is that you may have to streamline your code a bit, put some COMMIT statements here and there to free up memory. Are you running the process on the server directly or on a client machine? If you are running it on a client, then you are pulling 20000000 records through the network to your client computer (I doubt that you have enough RAM for that, so it's probably paging like crazy) and pushing 20000000 other ones back to the server.0 -
What I doing is this:
The DTS put some (note all the 20000000 records) in table Temp17 (a table equal to table 17)
Then I run a codeunit:
Temp17.RESET
IF Temp17.FIND('-') THEN
REPEAT
T17 := Temp17;
T17.INSERT(TRUE);
COMMIT;
UNTIL Temp17.NEXT = 0;
When finish, I TRUNC the Temp17 in SQL to clean all the records, and then I put more record (4000000) with the DTS and run the codeunit again.
I going to try disable the secondary key and put less records to see if it improve performance.0 -
Are you running that process from your own computer or on the server directly?
You may want to code commit points around that, so you don't COMMIT after every insert but after say every 500 or every 1000 records. COMMIT itself takes up processing power itself, and by only doing it every so many records you can streamline the process.
Disabling secondary kays may speed things up as well. Don't forget to turn them back on when you are done though.
0 -
Thanks
Disabling secondary key work perfectly. One week to insert 4.000.000 records, 1 hour to insert 3.000.000 .
Let see what happen when I turn them back again.0 -
Turning them back on shouldn't take that much time. It is creating the keys only once for all records, instead updating them for every record when importing. Tip: do the same when deleting a lot of records.0
-
I turn back again keys in table 17.
Now I can't insert a record in table 17. It stop, I stay half an hour to insert a record. What is happen????????
](*,) ](*,) ](*,)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