Page Index Toggle Pages: [1] 2  Send Topic Send Topic Print Print
Hot Topic (More than 10 Replies) Network speed issues (Read 6636 times)
cbislander
Full Member
***
Offline



Posts: 103
Joined: Mar 22nd, 2018
Network speed issues
Oct 29th, 2022 at 3:59pm
Print Post Print Post  
We have a Windows 10 Server connected to 7 computers, all wired.  When one computer is doing a Mass Update using the Transfer>Inventory, it severely slows down any other computer that are accessing other databases like Invoice.

5 computers are using Windows 10, while 2 still have Windows 7.

Any ideas what I can do to reduce the lag?

  
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Network speed issues
Reply #1 - Nov 1st, 2022 at 2:25pm
Print Post Print Post  
There could be a couple reasons for the slowdown, but generally it's either Network speed or Server CPU speed(assuming you have enough Ram and aren't swapping). Take a look at Task Manager on the Server computer and If CPU usage by Sesame is going up and down, then it could be a network bottleneck. If it's staying pegged(Note: on a quad core, 25% will be pegged for a single thread which the communication for a client will be)then you would benefit from a faster CPU.

Also if you're comfortable with Linux, a Linux Sesame Server runs much faster than a Windows Sesame Server. Just the memory management on Linux and everything makes it run much faster.

On a different note, Can the Mass Update be written as a Mass Update on the Engine? Those run a lot faster as every record is not being sent over to the client system, updated and being sent back.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
cbislander
Full Member
***
Offline



Posts: 103
Joined: Mar 22nd, 2018
Re: Network speed issues
Reply #2 - Nov 2nd, 2022 at 2:24pm
Print Post Print Post  
Hi Ray,

I have attached a picture of what my Server is showing.

  

20221102_111101T.jpg ( 42 KB | 38 Downloads )
20221102_111101T.jpg
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Network speed issues
Reply #3 - Nov 2nd, 2022 at 2:34pm
Print Post Print Post  
and this is during a slowdown?
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
cbislander
Full Member
***
Offline



Posts: 103
Joined: Mar 22nd, 2018
Re: Network speed issues
Reply #4 - Nov 2nd, 2022 at 3:05pm
Print Post Print Post  
No.

The slowdowns only happen when someone is doing a mass update.  I'll send another picture if I can recreate the scenario.
  
Back to top
 
IP Logged
 
cbislander
Full Member
***
Offline



Posts: 103
Joined: Mar 22nd, 2018
Re: Network speed issues
Reply #5 - Nov 2nd, 2022 at 8:02pm
Print Post Print Post  
This is what happens when I am importing.
  

20221102_164428.jpg ( 119 KB | 36 Downloads )
20221102_164428.jpg
Back to top
 
IP Logged
 
cbislander
Full Member
***
Offline



Posts: 103
Joined: Mar 22nd, 2018
Re: Network speed issues
Reply #6 - Nov 2nd, 2022 at 8:02pm
Print Post Print Post  
This is what happens when I am doing mass updates and posting to inventory
  

20221102_165447.jpg ( 118 KB | 37 Downloads )
20221102_165447.jpg
Back to top
 
IP Logged
 
cbislander
Full Member
***
Offline



Posts: 103
Joined: Mar 22nd, 2018
Re: Network speed issues
Reply #7 - Nov 8th, 2022 at 3:40pm
Print Post Print Post  
Hi Ray,

I checked other postings concerning Mass Updates.

I see that the Mass Update on Engine sees Fields and not Elements.  The Mass Updates that I use involve posting to other databases:  Sales to Inventory and Transfer to Inventory.  The Mass Updates also make changes to the source database.  Is that possible with the Mass Update on Engine or should I just stick with the way I have it?
  
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Network speed issues
Reply #8 - Nov 8th, 2022 at 6:53pm
Print Post Print Post  
cbislander wrote on Nov 8th, 2022 at 3:40pm:
Hi Ray,

I checked other postings concerning Mass Updates.

I see that the Mass Update on Engine sees Fields and not Elements.  The Mass Updates that I use involve posting to other databases:  Sales to Inventory and Transfer to Inventory.  The Mass Updates also make changes to the source database.  Is that possible with the Mass Update on Engine or should I just stick with the way I have it?


That is all possible with Mass Update on the engine. Things that aren't are things that affect layout elements, like Visibility(), ReadOnly(), etc, etc.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
cbislander
Full Member
***
Offline



Posts: 103
Joined: Mar 22nd, 2018
Re: Network speed issues
Reply #9 - Nov 14th, 2022 at 4:16pm
Print Post Print Post  
Ray,

I've attached the mass update that is used at the end of the day.

How would it be done differently on Mass Update on the Engine?
  

2022-COMM-SPC-INV_UPDATE.txt ( 3 KB | 40 Downloads )
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Network speed issues
Reply #10 - Nov 14th, 2022 at 5:24pm
Print Post Print Post  
I apologize as I am mistaken. It appears that currently all of the XResultSet commands are not allowed in Mass Update on the Server. I'm looking into why this is and to see if we can allow most of them, with the exception of the ones that reference the form, in a Mass Update on the Engine in a future update of Sesame.

But your current code can be rewritten to be faster.

One thing you can do to make it faster is currently you are calling @XResultSetNew() and @XResultSetClose() twice per record. What I would recommend doing is call the @XResultSetNew() calls in Global Code, set the returns to a Stat and use that in your code. Then at the bottom of your current code check if you are on the last record.
Code
Select All
If @ResultSetCurrentPosition() = @ResultSetTotal() Then 

and inside the If Statement, close the XResultSets.

Then:
Code
Select All
			XResultSetValue(vNewitem, "ITEMCODE0", vC1)
			XResultSetValue(vNewitem, "TRANSDATE0", vLE0 )
			XResultSetValue(vNewitem, "TRANSNUMBER00", vINVOICE)
			XResultSetValue(vNewitem, "TRANSSUBNUMBER0", vITEMNUM)
			XResultSetValue(vNewitem, "SRTOUT0", vSROUT)
			XResultSetValue(vNewitem, "SMTOUT0", vSMOUT)
			XResultSetValue(vNewitem, "ANTOUT0", vANOUT)
			XResultSetValue(vNewitem, "NGTOUT0", vNGOUT)
			XResultSetValue(vNewitem, "TOTALOUT0", vTOTALOUT )
		        XResultSetValue(vNewitem, "SALES", vLNET1) 


Can be written as
Code
Select All
			XResultSetValue(vNewitem, "ITEMCODE0", vC1, "TRANSDATE0", vLE0, "TRANSNUMBER00", vINVOICE, "TRANSSUBNUMBER0", vITEMNUM, "SRTOUT0", vSROUT, "SMTOUT0", vSMOUT, "ANTOUT0", vANOUT, "NGTOUT0", vNGOUT, "TOTALOUT0", vTOTALOUT, "SALES", vLNET1) 


And the same thing can be done with the other set of XResultSetValue commands.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
cbislander
Full Member
***
Offline



Posts: 103
Joined: Mar 22nd, 2018
Re: Network speed issues
Reply #11 - Nov 16th, 2022 at 12:49pm
Print Post Print Post  
Hi Ray,

I have attached the changes that I think you suggested.

Let me know if I got it right.
  

COMM-SPC-INV-REVISED.txt ( 3 KB | 48 Downloads )
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Network speed issues
Reply #12 - Nov 16th, 2022 at 2:54pm
Print Post Print Post  
cbislander wrote on Nov 16th, 2022 at 12:49pm:
Let me know if I got it right.


Looks good to me at a quick glance. Should speed it up quite a bit as that is 20 less calls per record to the server.

Another thing that would speed up everything would be to run a Linux Server instead of a Windows Server. Now I know that's not exactly a small change but Linux is just faster.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
cbislander
Full Member
***
Offline



Posts: 103
Joined: Mar 22nd, 2018
Re: Network speed issues
Reply #13 - Nov 16th, 2022 at 3:42pm
Print Post Print Post  
Hi Ray,

I will give it a try tonight.
  
Back to top
 
IP Logged
 
cbislander
Full Member
***
Offline



Posts: 103
Joined: Mar 22nd, 2018
Re: Network speed issues
Reply #14 - Nov 16th, 2022 at 9:18pm
Print Post Print Post  
I tried it but it didn't work.

The mass update should post to the Invent form and create record in the Activity Form.

The example below is a special order refund.  That part worked using the new way.

ASHLEY      D199-00      DINING BENCH      DIN      
N914063
06/27/2022      0      0      0      1      

In the Activity form, it did not create a record.

The old way does create a record.



The speed did not appear to be that much faster.  The update involved 72 records.
  

activity.png ( 5 KB | 35 Downloads )
activity.png
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send Topic Send Topic Print Print