While I'm waiting for this large file to download over VPN, it occurs to me that this is a good opportunity to throw the question out there, why does 'Get latest version' take longer to download a file than 'Check-in' does to upload it?
At the office, I don't get time to really ponder the significance of this because over our local network, file retrievals from the vault are usually done before I can put together a proper post on the subject. However, they do still take longer than uploads when I check the files in. The effect is magnified over VPN. That file shown in the screen capture is 280Mb in size (imported step file with components converted to virtual parts). It took a few minutes to check in over VPN and on another computer, it's taking somewhere over an hour so far to get the latest version of it.
This seems a little counter-intuitive to me. My ISP download speed is like 8 times faster than my upload speed, so if it were an internet bandwidth issue, I'd expect the situation to be just the opposite. Besides that, regular file sharing transfers and remote desktop over the VPN connection are much faster.
I haven't metered 'get latest version' vs. 'check in' on the local network, just observed that the progress bar seems to move slower on download than upload.
So that leads me to think there's either a problem on my server firewall (which is turned off for private network connections like our local network or VPN) or my PDM Server isn't configured correctly, or this is an inherent limitation of the software.
Anyone is welcome to weigh in on this issue. So friends, contemporaries, fellow CAD monsters, lend me your insights.
My system configuration looks like this:
PDM Server: Windows 10 Professional w/8Gb of Ram (running PDM is about all this server does 90% of the time). Database, Archive Server and Archive files are all on the same machine and drive.
PDM Version: 2019 Standard SP4.0 on top of a Microsoft SQL-lite 2014 install
Server IP address: Dynamic
VPN routing is handled by DDNS using Softether VPN tools.
Client machines are running 2019 SP4.0 and 2019 SP3.0
SolidworksSolidworks Pdm/enterprise Pdm
Check-in/Check-out simply marks the part in the vault as belonging to the user and then uses existing local copies. Get latest compares local files to the files in the vault and then has to load them up from the vault if they are not the same.
If you checked out an entire assembly and all it's parts it would be like selecting all the parts in a directory and changing them to read only. Get latest is like taking all those parts in the assembly and copying them to a new directory.
That is the nature of working over VPN. I did it, so I know how frustrating it can be. your internet service provider can google fiber or any other that is super fast - it doenst matter. Your bottleneck is going to be VPN or any IT related setback that deals with your VPN connection. Things are compounded quickly when you use wifi too. The main thing to understand is that PDM (much like any enterprise-level software intended for LAN use) will be "chatty" in its communications and require low latency, continuous connections where large packets are lost less frequently. you would need to know if your IT has set up the appropriate frame size for your network to allow large bite-sized packets, what security applications are your communications subjected to which may increase latency, what reroutes do your communications need to go through, etc. its definitely not your firewall, since you can communicate. For these reasons and any particular that my customers face with VPN, i say that VPN client configurations are not only not supported nor tested, but they are also ill-adviced. there may be many factors here (i.e. I have not even touched on throughput). I would recommend for your company to look into PDM web2. Or only considering small tasks in PDM with small file sizes while in VPN. EDIT: Another thing you can try, that i have done myself, is to use the VPN connection to remote into a desktop machine at the office what is connected to the LAN. This way you may be able to get more things done than having to wait over unreliable connections.
thank you for providing so much detail in your answer, Francisco. So, do you think the packet size and loss is affecting file transfer only or is it trashing communications for processes shared between the client and server?
I'll have to run this experiment myself and see what the results are.
Thank you.
This is why I believe that the files are updated during the download...because they aren't changed on the archive server.
I'm not arguing either way because I'm not an expert and I have no idea how it works. That being said let's say I go to the vault view and rename a file, move a file, copy a file whatever. I then NEVER open it up. Someone on another machine opens it up. The server must have the correct information somehow or else the person opening it up would get an error. I'm not sure how this would happen if the server is not the object keeping tabs on files, names, locations etc.
Log onto the archive server. Find an assembly file. (Remember the folders are the hex value of the UID of the file.) The folder the assembly file is in [on the archive server] should look something like this:
In my example I've made two versions of this assembly, that is why you see two sldasm files. You should notice the time stamps on the files are [nearly] identical to the times when the versions were last checked in.
Back to a vault view, find one of the children of the assembly, move it, and/or rename it. You'll notice the time stamps of the files in the archive server did not change. You can even rename the assembly itself, and you'll notice the files on the archive server do not change.
Go to another vault view, have them get the latest version of the assembly. You'll notice the files in the archive server still have the same time stamps, yet the file that was downloaded reflects the file rename and change you did earlier in the first vault view.
This is why I believe that the files are updated during the download...because they aren't changed on the archive server.
After the file is downloaded, PDM looks at the database to determine what references need to be updated and uses the Document Manager to update them. SW certainly does not want to do this work on an archive server, they want to keep the servers as fast as they can, it is the client machine that is doing this work.
Right, so the second part of my experiment was to remote into another machine and check those same files to see if the modified date and references updated. They reported with the updated dates in the vault view. Ofcourse when I went to Properties to inspect the file metadata directly, it downloaded the file..
Jeff's argument that file references are updated by the PDM client when the files are retrieved isn't disproven by this test.
(@Jeff Sweenedy: if you have direct knowledge of how the archive server handles these transactions, please provide the source as that would probably lead to a lot of really useful information)
(this would also be a good point for an AE to weigh in)
I'm still skeptical because the length of the detay is driven by the network connection and file size, not the speed of the machine. On top of that, the delay applies to any change in the file, not just file references. If I check in a model where I changed nothing but the active view, retreival is still much slower than upload.
As a side, note, using the document manager API you can update file references without opening a file and you don't need Solidworks installed to use the document manager API, so my prediction is that the archive server is using it to update references at the time of of request.
If you rename or move a file in the vault, your cache is updated properly. Just the files in the archive server are not updated.
I'm not sure how it works but the above does not make sense to me unless I'm not understanding you. If I rename a file in the vault and someone else comes along and opens the assembly that file refers to they will get a "Files have been moved or renamed...". They certainly aren't reading my cache so the server has to keep track in some fashion of how the files are moved, renamed etc. In fact it would seem to me that this function is the exact function that PDM and Vaults were designed for.
It takes up server resources that may never have value. If many people were renaming files at once, your server would be very busy.
I'm not sure why this is an issue. I'm not as familiar with SW PDM as I am Inventor Vault but the server in IV Vault is what maintained, updated etc part relations and the vault data base. You could make local changes but you were the only one that could see them until you checked them in. SW PDM operates similar so it would not surprise me to see that SW PDM controlled and maintained name changes on all checked in file renames and moves.
EDIT: So I just renamed a part in the vault. It was checked in. I then looked at the references in the assembly. The assembly is referenced correctly to the new changed name. I did not open, check out or do anything to the assembly. My guess would be that everyone who looked at that assembly would also get the proper name. The only way that this could have happened is if the server did the renaming. Again I have no idea how it really operates, but it is my understanding that the "Vault" is not really a parts storage/file storage device as much as it is a data base. The vault does not open the parts to change the references, yes that would take a whole lot of resources. What it does is open the data base and say "Replace this with that" and "Rename that file"
No images.
However your test results all seem valid. Your not actually looking at the files on the server, just your local cache. These cache files should always update as needed.
If you rename or move a file in the vault, your cache is updated properly. Just the files in the archive server are not updated. However when the files are copied out of the archive server, that is when the references are fixed.
It saves your server, imagine if you renamed a file that required many assemblies to be updated as well, you don't want your server digging through all of those files and updating them. It takes up server resources that may never have value. If many people were renaming files at once, your server would be very busy.
Certainly PDM is going to fix the files in your cache, but that is your local machine doing that work, you aren't hurting everyone else. Same idea when you download those non-updated files from the vault....PDM will update the references as the files are downloaded, where again it is your machine doing the work.
That leads me to conclude that when you rename or move a file in the vault, all of that happens on the server side
Which is one of the major benefits of having a vault. If you move or rename a file without a vault none of the updates take place.
I pasted several images into my reply and they show up when I edit the post, but not when I review it.
Let me know if the images are missing when you read this.
I take from your reply that when you run "get latest version" on an assembly, the server has to check all of the files to see if any changes were made to references via moving, renaming, etc and at that point, it has to update the files in order to have them load correctly on the client work station.
Well, that prompted a little experimentation on my part.
I made a dummy assembly and pack-n-go'd it into the vault
I then checked it in along with all of its dependents.
I then renamed one of the dependents in windows explorer
(I added the -2 to junk_10110029-2.sldprt)
As you can see above, as far as the PDM database is concerned, the change has been made.
I then looked at the references as seen to the assembly file itself using the 'edit reference file locations' tool in the Solidworks 'Open' dialog.
As you can see, the Solidworks assembly reference list -which has nothing to do with PDM has been updated.
I remoted into my home machine, browsed to the file, waited while it downloaded and then did pack-n-go on the assembly (not the PDM copy tree) to see if the file on the server had been updated:
It had.
Now, keep in mind, that the only thing I did was rename one of the assemblies child components. I didn't check the file out or edit it in Solidworks or run 'update references'
That leads me to conclude that when you rename or move a file in the vault, all of that happens on the server side
One more thing to add: if a file with children, it also ensures all references are up to date.
i.e. Imagine if you moved a child file to a different folder within PDM. PDM does not update the references in the assembly file in the archive server. So whenever a file is downloaded to your local cache, it does write to that file with the new referenced file location(s).
Well, that's interesting, the part about replacing the component in the assembly and going through the tree, but in this case, it was one file and I ran 'get latest version' from Windows explorer, not Solidworks.
That's not true. If there were changes to the file, the new copy has to be uploaded to the server on Check-in. Ditto for check out. If the server file is newer, it will be downloaded.
I was thinking along the lines of an assembly where you had several parts that were not checked out but where not the latest. Get latest goes thru the entire assembly and compares all the parts. It gets all the latest parts regardless of check in status.
You are absolutely correct if we are talking either about a single part or an assembly with all the parts checked out. I believe in that case the time difference is do to the issues I mentioned in my other response. However in the case where you don't have the parts checked out that are not up to date, get latest gets the latest of those files. When you check it back in it does not check those files back in.
Hi,
(I am not CAD monster), but I think that the problem can be in specific assembly.
If still to consider that it is imported STEP files and converted to virtual parts.
Personally at me virtual parts always create huge problems - and I always save them in files.
Besides if by import can links with the source files STEP will remain that at certain SolidWorks and PDM settings can hang up a system completely.
If there are no such problems with other assemblies - then it very probably.
Possibly, search of the references STEP files is carried out (which out of PDM).
Perhaps my arguments are not really evidence-based, but they from practice.
For get latest you still have to do several things you don't do for check in. Get latest first has to see what the latest is. You have a comparison of one file to the other. Check in does not do this, it simply writes the file. Get latest also has to download the file, put it into memory and replace it in the assembly. I would assume this means running thru all the mates, features etc etc. Again check in does not need to do this, it's just writing the file.
That's not true. If there were changes to the file, the new copy has to be uploaded to the server on Check-in. Ditto for check out. If the server file is newer, it will be downloaded.
You're half right. Check-out reserves the file for editing in the database. Check in, however, uploads the file from the local machine to the server, thus the question about why it takes longer.
Thanks for your insight.