how to remove a delay respond?

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

t4nu
Ebase User
Posts: 305
Joined: Thu Jul 02, 2015 8:32 am
Location: Indonesia

how to remove a delay respond?

#1

Postby t4nu » Wed Mar 16, 2016 11:52 am

Hi,
I notice that ebase application is rather slow in respond of user action. For e.g. when I click the button it will take a while until the script is responding, even sometimes seems the script is not executed at all.

What should I do to remove the delay?
0 x

Steve
Moderator
Moderator
Posts: 421
Joined: Fri Sep 07, 2007 3:44 pm
Location: Sandy, UK
Contact:

#2

Postby Steve » Wed Mar 16, 2016 5:05 pm

Hi

How long is the delay? There should not be any delay between the user clicking a button and the script execution.

Kind regards

Steve
0 x

t4nu
Ebase User
Posts: 305
Joined: Thu Jul 02, 2015 8:32 am
Location: Indonesia

#3

Postby t4nu » Thu Mar 17, 2016 3:13 am

It's around 5 secs (sometimes more than 5 secs). So many times the user click the button more than once because seems no respond from the application.
I notice this after let the users to try the application.
Steve wrote:Hi

How long is the delay? There should not be any delay between the user clicking a button and the script execution.

Kind regards

Steve
0 x

Steve
Moderator
Moderator
Posts: 421
Joined: Fri Sep 07, 2007 3:44 pm
Location: Sandy, UK
Contact:

#4

Postby Steve » Thu Mar 17, 2016 9:41 am

I am not sure why you see a delay of 5 seconds. But here are a couple of things to look at:

1) Have you checked the server log with the log information enabled so that you can see the script running on the server? It is worth putting a debug message at the top and bottom of the event script

Code: Select all

log("Start Event......");
//do some code....
log("End Event......");
This will give you an indication of the time it takes to process the event for the button.

2) Check the CPU and memory on the server and check that these appear to be normal. Heavy CPU or high memory will slow things down.
0 x

t4nu
Ebase User
Posts: 305
Joined: Thu Jul 02, 2015 8:32 am
Location: Indonesia

#5

Postby t4nu » Fri Mar 18, 2016 3:44 am

Thank you for the suggestion.
Will try it in my script.
Steve wrote:I am not sure why you see a delay of 5 seconds. But here are a couple of things to look at:

1) Have you checked the server log with the log information enabled so that you can see the script running on the server? It is worth putting a debug message at the top and bottom of the event script

Code: Select all

log("Start Event......");
//do some code....
log("End Event......");
This will give you an indication of the time it takes to process the event for the button.

2) Check the CPU and memory on the server and check that these appear to be normal. Heavy CPU or high memory will slow things down.
0 x


Who is online

Users browsing this forum: No registered users and 11 guests