• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
batchSync
#3
Thanks Mark,

the blocking nature of sync is really quite an issue with large data sets with waiting 5-10 seconds (some times much more).
It's actually much more responsive to just eschew the local database and only use cloud database. 

In an effort to streamline this, I've modified all my code successfully, but am still encountering 1 long-ish delay: cdb_auth.

For me, using the London server, it takes between 4.6 - 5.1 seconds to log in (i log the milliseconds each function executing)
I use a hard coded login as i'm maintaining a separate user database, so at startup the following code will execute from the openCard hander:

Code:
put cdb_auth(tEmail, tPassword,"User") into gCDBAuthKey


cdb_ping gives an average of 239.6 ms
cdb_pingNode gives an average of 11.7 ms
Both of these seem a little bit longer than when i've previously tested but still seem reasonable.

So, questions are:
1. is it normal to have a 4-5 second delay to log in as above (in which case i'll just throw up a spinner widget and give it no further thought)
2. if not and given the slight higher server latency, is there a server problem?

Many thanks as always (and sorry for monopolising the forums!)
Stam
  Reply


Messages In This Thread
batchSync - by stamatis - 01-07-2021, 07:00 PM
RE: batchSync - by mark_talluto - 01-07-2021, 08:28 PM
RE: batchSync - by stamatis - 02-08-2021, 12:43 AM
RE: batchSync - by mark_talluto - 02-10-2021, 10:52 PM
RE: batchSync - by mark_talluto - 02-11-2021, 08:02 PM
RE: batchSync - by stamatis - 02-12-2021, 02:26 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)