On this VPN server we have the DBF files located
Each client has an executable on his/her local machine.
The client connects to VPN server and from program we use something like this to open the DBF on sever:
c := "\\VPNserver\clients\1000\client1"
SET DEFAULT TO &c
SET PATH TO &c
The files are opened properly and all is functioning properly.
Except one thing - the speed!
I made some measurement. We need to open 18 DBF files on VPN server and it lasts about 2 and half minutes! I isolated only the part of code which uses the DBF at the program beginning and measured the start and end of the function job.
There is nothing I can do to speed up the process of opening. Each DBF is opened like this:
- Code: Select all Expand view
USE someDBF NEW SHARED
IF NETERR()
MsgInfo("error message")
QUIT
ENDIF
nSomeDBF := SELECT()
(nSomeDBF)->(ORDSETFOCUS("someTAG"))
Nothing special actually. And no space for optimization or speed up....
I am not sure if this is how VPN works regarding the DBF handling or something can be done on VPN server side, some setup.
In program, I don't see anything I can do.
Is it possible that VPN by itself is slow in the situation like mine?
It is mandatory for us to have DBF on VPN server, so we will not keep all on client side.
Any advice or help appreciated
Thanks