Android Question [B4X] CloudKVS - synchronized key / value store

luke2012

Well-Known Member
Licensed User
Longtime User
Hi All,
Talking about "[B4X] CloudKVS" @Erel Solution, I have to fine tuning the data refresh timing between the connected CKS clients in order to don't overload the client (my custom "Master" client) that collect all data from other clients.

B4X:
autoRefreshTimer.Initialize("AutoRefresh", <change this time>)

Is the above mod correct ? I have to change the AutoRefresh timer in all clients ?
My target is to decrement the refresh frequency in order to don't overload the "Master" Client.

Thanks in advance for your help.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
I have to fine tuning the data refresh timing between the connected CKS clients in order to don't overload the client
Have you encountered any issue?

Is the above mod correct ?
No. It will not do anything.

The relevant line in the client example is in the Main module:
B4X:
ckvs.SetAutoRefresh(Array(User), 0.1) '0.1 minutes
This means that the client will check for updates every 0.1 minutes.

It is important to first understand the problem. Changing the interval will not do much.
 
Upvote 0

luke2012

Well-Known Member
Licensed User
Longtime User
Have you encountered any issue?


No. It will not do anything.

The relevant line in the client example is in the Main module:
B4X:
ckvs.SetAutoRefresh(Array(User), 0.1) '0.1 minutes
This means that the client will check for updates every 0.1 minutes.

It is important to first understand the problem. Changing the interval will not do much.

My user told me that the client (app) freeze when there is much data to sync.
Many items (each item is type).

Only a question about sync...
The client sync is raised also when the phone in is stanby mode (screen locked) ?
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
The client sync will only happen when the process is running.

My user told me that the client (app) freeze when there is much data to sync.
If I remember correctly, the data is deserialized asynchronously. It shouldn't cause the app to freeze. Are you doing anything with the new data?
 
Upvote 0
Top