| Welcome, Guest |
You have to register before you can post on our site.
|
| Online Users |
There are currently 236 online users. » 0 Member(s) | 233 Guest(s) Baidu, Bing, Facebook
|
| Latest Threads |
Step Up to the Plate: How...
Forum: Getting Started
Last Post: Innocent Sozonov
11-27-2026, 05:33 PM
» Replies: 0
» Views: 90
|
Understanding the Physics...
Forum: General
Last Post: rodeoneerer
11-27-2026, 03:02 AM
» Replies: 0
» Views: 108
|
Escaping Granny's Grasp: ...
Forum: General
Last Post: Anfisa Seleznyova
11-23-2026, 02:02 AM
» Replies: 0
» Views: 144
|
Olive Young Promo Code [G...
Forum: General
Last Post: yanarip357
11-19-2026, 05:32 PM
» Replies: 0
» Views: 155
|
Olive Young Discount Code...
Forum: General
Last Post: yanarip357
11-19-2026, 05:31 PM
» Replies: 0
» Views: 133
|
Olive Young Promo Code [G...
Forum: General
Last Post: yanarip357
11-19-2026, 05:29 PM
» Replies: 0
» Views: 136
|
【Working Code】Olive Y...
Forum: General
Last Post: yanarip357
11-19-2026, 05:28 PM
» Replies: 0
» Views: 149
|
Olive Young Discount Code...
Forum: General
Last Post: yanarip357
11-19-2026, 05:26 PM
» Replies: 0
» Views: 134
|
【Working Code】Olive Y...
Forum: General
Last Post: yanarip357
11-19-2026, 05:25 PM
» Replies: 0
» Views: 129
|
Olive Young Discount Code...
Forum: General
Last Post: yanarip357
11-19-2026, 05:24 PM
» Replies: 0
» Views: 125
|
|
|
| Quick question re: primary keys |
|
Posted by: stamatis - 09-06-2020, 02:17 PM - Forum: General
- Replies (1)
|
 |
Hi all,
quick question about primary keys - in particular, creating these.
I know the standard methods will automatically create primary keys - but is it possible to supply these yourself at record creation?
The scenario i have in mind is that you can generate a set of multidimensional arrays in LiveCode and these would link to each other with primary/foreign keys which i create in LiveCode with UUID(). So far so good.
As far as i can see however there isn't a way to supply these keys to LiveCloud to use in place of the automatically generated cdbRecordID.
Not a major showstopper but does add an unnecessary layer of complexity retrieving records as I'd have to manage a 'PrimaryKey' field on top of the cdbRecordID field...
Unless i'm missing a something major? Very happy to be corrected
|
|
|
|
| Speed? |
|
Posted by: stamatis - 08-31-2020, 06:04 PM - Forum: General
- Replies (3)
|
 |
Hi all,
I'm post here having posted the same in the LiveCode forum as well - but this is a better place to do this.
I was wondering about the speed of LiveCloud operations.
I'm based in London and using the London servers. i'm connecting via a very fast WiFi connection (no proxies).
First cdb_ping(*table): 504.756927 ms
Average ping: 139.960051 ms
First cdb_pingNode(*table): 8.497 ms
Average PingNode 6.455 ms
The pingNode seems very respectable, not sure if ping is in the expected range.
I've timed some actions with LiveCloud, by storing 2 different tables in the cloud (21 records each, so quite a small number).
For each of these, there is first a check if a record exists (the premise that data in one or the other table may already exist in the database).
On average it takes about 2.5 seconds per table to store the data in the cloud (average 2476.5 ms).
Possibly this is due to my algorithm: All data is stored already in a multidimensional array in LiveCode. I build a tInputA array of records to upload with a 'for each' loop
Pseudocode for each table:
Code: local x, tInputA, tOutputA, tKey, tTableID
put cdb_TableID("tableName") into tTableID
Repeat for each element tArray in pArray
add 1 to x
put tArray[key1][key2] into tKey
put cdb_query("keyName","=",tKey,"tableName","cloud","recordList") into tOutputA
if tOutputA is empty then //this record does not already exist in the table
put tArray[key1][key2] into tInputA[tTableID][x]["keyName1"]
...
put tArray[keyX][keyZ] into tInputA[tTableID][x]["keyNameX"]
end if
end repeat
put cdb_batchCreate(tInputA,"cloud") into tOutputA
Keeping in mind that the full data may be >1000 records per table at a time and will involve at least 3 tables, this i suspect may be quite slow -- but not yet tested on large numbers.
Is this expected performance?
I suspect my code is the culprit, any advice on speeding this up?
|
|
|
|
| Primary Key (cdbRecordId) |
|
Posted by: stamatis - 08-23-2020, 11:02 AM - Forum: General
- Replies (5)
|
 |
A quick question about primary keys (cdbRecordId): Is it possible to supply a primary key (in uuid format) rather than have LiveCloud create it? I ask because i have a number of related tables in SQL i'd like to try importing.
If not i'd have to create a fairly complex script that would create a cdbRecordId for the primary table and then have to search/replace this key in all child tables. Would be easier if i could just supply a UUID directly!
|
|
|
|
| newbie advice |
|
Posted by: stamatis - 08-23-2020, 02:34 AM - Forum: General
- Replies (6)
|
 |
Hi all,
Am just getting familiar with liveCloud and was hoping for some guidance:
1. When creating a record (cdb_create) you specify a target of 'local' or 'cloud'. What is the best practice to ensure 'cloud' data is synced when internet access is interrupted and then restored? Does any cached data survive past quitting and restarting the app?
2. Is it possible to have a local db that syncs with the cloud rather than directly CRUD'ing from the cloud? Cloud access seems very slow (on free version in any case) and i wonder if this may be way to speed things up.
3. On that note, all example I've tried apps are really quite slow - it takes about 10 secs to load the sample app and sync data and in general any data manipulation seems to take relatively long time giving the impression of a hung app. I imagine this is largely for apps storing data in the cloud. Is there a better practice to speed up access?
I haven't yet actually used liveCloud in any projects (currently SQL based) but investigating this for LiveCode based apps - grateful for any advice/guidance,..
|
|
|
|
| Version 2.7.0 and 2.7.1 Released |
|
Posted by: mark_talluto - 08-17-2020, 08:37 PM - Forum: Announcements
- No Replies
|
 |
Version 2.7.1 is a regression bug fix for 2.7.0.
######## VERSION 2.7.1 (2020/08/17)
News: IMPORTANT CHANGES! Only LCM changes are in this update. Please refer to previous updates to ensure you are current with CanelaDB libraries.
- - - - - - - - - -
Bugfix: projectID was being displayed instead of the projectName in the default from email
######## VERSION 2.7.0 (2020/08/17)
News: IMPORTANT CHANGES! Only LCM changes are in this update. Please refer to previous updates to ensure you are current with CanelaDB libraries.
- - - - - - - - - -
Added: Added ability to update the from email used in emails sent to your users. Right-click on a project and select "Manage Emails" to see the manange emails view. Click on the new "From Email" tab to view or update the from email.
|
|
|
|
| Version 2.6.9 released |
|
Posted by: mark_talluto - 08-17-2020, 05:57 PM - Forum: Announcements
- No Replies
|
 |
######## VERSION 2.6.9 (2020/08/14)
News: IMPORTANT CHANGES! Only LCM changes are in this update. Please refer to previous updates to ensure you are current with CanelaDB libraries.
- - - - - - - - - -
Added: Added date range filter to invoices view in "Billing" tab of "Account" menu.
Added: Added export feature to invoices view to either print or save the current list of invoices as a PDF. (Matthias Rebbe)
The changes to the billing tab are useful for tax season as much as they are useful for general tracking on your expenses.
|
|
|
|
| double account email in cdbUsers Table |
|
Posted by: miyaa - 08-08-2020, 06:29 AM - Forum: Getting Started
- Replies (3)
|
 |
Are you another way, so that there is no double account register in the cdbUsers table.
if I register with an email with the same password. then there will be a double account register.
example
email: email@example.com
password: Test123
and then
email: email@example.com
password: TEst123
then what happens in the cdbUsers table will occur 2 email accounts. I don't think this is ideal and it shouldn't be like this. There should be only 1 register account in the user table.
I tried to use the cdb_advancedQuery function but the users table cannot query. so you can't check if the same email can't double register.
Are there any other solutions to prevent double accounts?
Thanks
|
|
|
|
| autologin |
|
Posted by: miyaa - 08-04-2020, 09:54 AM - Forum: Getting Started
- Replies (1)
|
 |
Helo,
is there a way to make the logged-in user no longer need to log in when opening the application?
I usually save tokens to check back to the server whether the tokens are still valid or not.
how do i do this on livecloud?
Thanks
|
|
|
|
| Version 2.6.8 released |
|
Posted by: mark_talluto - 07-23-2020, 02:26 AM - Forum: Announcements
- No Replies
|
 |
######## VERSION 2.6.8 (2020/07/22)
News: IMPORTANT CHANGES! Only LCM changes are in this update. Please refer to previous updates to ensure you are current with CanelaDB libraries.
- - - - - - - - - -
Improved: Made internal store "Subscription Status" in Accounts dynamic so we can offer new plans or modify existing plans more easily.
Bugfix: When resizing the LCM window, data might not display in the main view. (Peter Bordych)
Bugfix: When new tables are created outside of LCM and the Projects button is pressed in LCM, the Project view may become corrupted. (Peter Bordych)
Bugfix: Handle authentication failure when Projects button is pressed.
Bugfix: Fixed an issue where when reseting Projects from clicking on Project button would not clean out existing project name listing resulting in old data drawing on top of existing data.
|
|
|
|
|