Just been looking through the API and came across batchMerge.
While this may be potentially quite useful, I found the documentation fairly impenetrable and difficult to ‘grok’.
Does anyone have a high level overview of this and when it’s used?
Hi all,
I’m trying to convert an existing project from a relational database.
I’m hoping I can get some help constructing a query that’s fairly straightforward in SQL...
In this scenario there are 3 tables:
- table 1 has a list of dates
- table 2 has encounter data that includes a foreign key for person and links to table 1 by date (table1.date = table2.date)
- table 3 has person data and links to table 2 with personID (table2.personID = table3.personID)
So basically selecting a date in from table 1 should retrieve all encounters in table 2 with the same date and in each retrieved result, the personID foreign key should retrieve person data from table 3 when presenting the data.
in SQL i’d just use a SELECT with JOIN statements to retrieve this in one go.
Is this feasible with liveCloud? Or would i need to construct an array running 2 separate queries?
Alternatively, should the data structure change to include all person data in the encounter table for example?
My customer considerations using LiveCloud is the limited RestApi so it will be difficult to connect some of the services we have built.
I hope this can be a feature.
I may be missing a way to deal with this, but so far I can't see a way around this:
Long table names are truncated (which is fine), but there is no way to see long table names in full within the LCM interface after creation. In a previous version, hovering over the table would show a tooltip with the table name concatenated with the tableID, but currently this shows me the tableID only.
The width of the Tables column is fixed. So other than redesigning everything (in this particular case, the table names match array names, which in turn are taken from data exported from a medical system), it relies on me semi-guessing the table name after it's been created.
Solutions could be to make the Table column resizable or have the table name show up in the tooltip again - but actually i am hoping the table name ± tableID could be put into the 'Data' header that sits above the key names as it serves no real purpose (and perhaps make it selectable so that either the name or ID can be copied for scripting etc).
I'm hoping this can be considered as a feature request.
I launch LCM and am first greeted with a missing SDK message in LCM.
Then it tries to log in without me entering any text and it just hangs indefinitely - but can be quit/exited normally...
I struggled with this task, so I created another way of doing this.
This is a two-step process.
The first thing that I did was to create a new project called "Generic Login.
I did not add any keys when I did this. The New Project that was created had only 2 keys - cdbUsers and cdbBlobs. and that was all.
I saved this project.
Now, to incorporate this card into the existing project, I opened LiveCode with the existing project that needed a Login Card.
Next, I opened the Generic Login stack. The next step jus requires that you open the Message Box in LiveCode. Make sure that the Login Card is opened. Type "copythiscardto the stack "target stack" The Login Card is now loaded into your Project that needs the login Card.
Once the Generic Login Stack is created, you no longer need to do this step. You will always have this stack.
This does not need to be done on a New Project, becuase the LogIn is included in creating a New Project in the LCM.
I am not sure if this is the most efficient method and I am open to suggestions.
I'm based in London and have set LCM's region to UK-London.
Performance had been a bit laggy but acceptable. Recently i've been experimenting with different schemas to see how best to store data for a particular project in LiveCloud and have created 3 different iterations of a table with frequent changes up to now in the schema.
However increasingly i'm getting errors where LCM does not refresh, it fails to add tables and fails to add keys. If i keep persisting it eventually works. Or sometimes requires restarting LCM to work and then it it's starts failing again. I was unable to delete a table that couldn't be modified at all, eventually managed it in code using cdb_deleteTable.
I've checked that all communication is definitely getting through my software firewall (Little Snitch 4.5.2, on MacOS Catalina 10.15.6).
It's started generating error messages advising me i should contact Canela, so here i am...
These errors occur any time i choose one of the tables, try to refresh a table, try to add a key or try to add a table. The errors are not exactly reproducible but seem to be increasing in frequency.
This error also shows up when trying to add/modify tables
As a side note, my firewall is flagging up several warnings because the code signature for LiveCloud Manager is not valid (not signed).
(FWIW, the 'London' servers are in Maidenhead, a good 30 miles outside London -- I'm sure this isn't an issue, but calling it London is a stretch! Also not sure why it's connecting to servers in LA and Washington...)
In trying to track down the source of error, i checked the console in case LCM output any diagnostics there. It doesn't it seems, but it did generate number of diagnostic logs, generated by the wakeups, apparently averaging 2332 wakeups per second -- not sure what that means, but here is a sample of the log text:
Quote:Date/Time: 2020-09-07 15:29:45 +0100
End time: 2020-09-07 15:30:04 +0100
OS Version: Mac OS X 10.15.6 (Build 19G2021)
Architecture: x86_64h
Report Version: 29
Incident Identifier: B1C97FBB-8219-4F5E-A3BE-29672CE9BA66
Data Source: Microstackshots
Shared Cache: 0x8824000 A58FA787-1403-34AF-813D-C380C25A1080