• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
speed & reliability
#1
Hello,

I have a question similar to simon.schvartzmann's in the thread "Livecloud x Dropbox performance."

The app I hope to get working with acceptable performance & reliability will replace an app that reads from and writes to a server-based MySQL database. I've not generated comparative numbers but am finding queries and updates to my LiveCloud table to be significantly slower than with MySQL. I'm trying to decide if the slower performance will be within the range of acceptability or not.

In addition to the speed issue, I'm finding that updates to records sometimes fail. In my most recent test, updating c730 records in rapid succession, looping through a tab-delimited list in LiveCode, updates for 5 of the records failed, so a failure rate of about 0.7%.

Of course, the only acceptable failure rate overall is 0%. I've built in an extra loop to take the list of failed updates and try updating again. In this test the 5 updates that failed initially all went through on second try but I'll need to incorporate a system that repeats until there are no failures and all records get updated.

Back to the speed issue. The pattern seems to be that the update process will run relatively quickly for some number of records and then there is a "hang," in which I'll receive messages for several seconds to the effect the server response cannot be downloaded at this time.

Is there anything I can do in my LiveCode scripts—perhaps wait for a fraction of a second between updates?—that might improve reliability? Is LiveCloud being overwhelmed by updates in rapid succession? If a wait command might help, what length of time? Each fraction of a second is, after all, a fraction of a second one would rather not add to processing time.

For my app to work acceptably well, I'll need to be able to update as many as 3000–4000 records in sequence without having to hold things up until the whole batch, including retries on failures, is complete.

What should I try? Thanks in advance.
  Reply


Messages In This Thread
speed & reliability - by sltfn - 07-23-2019, 08:23 PM
RE: speed & reliability - by simon.schvartzman - 07-23-2019, 09:52 PM
RE: speed & reliability - by sltfn - 07-23-2019, 09:57 PM
RE: speed & reliability - by efrain.c - 07-24-2019, 01:05 AM
RE: speed & reliability - by clarencemartin - 07-24-2019, 03:41 AM
RE: speed & reliability - by sltfn - 07-25-2019, 05:39 PM
RE: speed & reliability - by mark_talluto - 07-25-2019, 09:35 PM
RE: speed & reliability - by sltfn - 08-13-2019, 12:17 AM
RE: speed & reliability - by mark_talluto - 07-25-2019, 09:38 PM
RE: speed & reliability - by mark_talluto - 07-26-2019, 11:56 PM
RE: speed & reliability - by simon.schvartzman - 07-28-2019, 09:38 PM
RE: speed & reliability - by efrain.c - 08-14-2019, 04:29 PM
RE: speed & reliability - by sltfn - 08-15-2019, 09:35 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)