Looks like M8 32bits is not compressing data. Processing time : less than 75 minutes.
M8 64 bits, compressing data : 147 minutes.
My script is based on many queries. All these queries are in one loop, that runs a thousand times or more :
1 - Inserts line into a target drawing upon a selection with a where clause;
2 - Inserts points in another drawing along a line from the target drawing from step 1;
3 - Updates a field in the points drawing;
4 - Add height to the points from a surface;
5 - Updates a field in the point drawing, using an inner join with its own table;
6 - Updates another field in the point drawing, using an inner join with its own table;
7 - Updates another field in the point drawing using a where clause;
8 - Updates another field in the point drawing using another where clause;
9 - Inserts points into another drawing (the target gets 5 millions points at the end);
10 - Deletes lines from the target at step 1;
11- Deletes points created at step 2;