Amazing stuff! 🚀 #3
Replies: 1 comment 3 replies
-
Great questions, @charlie-maloney! Cross-model transactionsI tried updating the same property (e.g., How the UI queries modelsThe
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey @wzhudev -- This is some incredible, diligent work! Thanks for sharing this with the world. I can't imagine how long this took you.
I have read through it twice now, and still probably need a few more passes to fully grok it.
A couple questions popped up as I was reading through it:
If calling
save()
generates a transaction for that model, are you aware of how cross model transactions occur?Are you aware of how the UI actually queries the models? For example, is a controller or something similar exposed to the UI? Or do they just query the Object Pool directly?
If this is the case, wouldn't the last sync id for a client workspace almost always be less than the DB wide sync id? For example, if no changes happened in your workspace, but some changes happened in a totally unrelated org/workspace, your client would think you are out of sync since the global
lastSyncId
has been incremented, yet there are no new delta packets for you to handle...?Also, to clarify, is
backendDatabaseVersion
just the schema version of the database? (e.g. gets incremented after every migration?).Other Questions:
Beta Was this translation helpful? Give feedback.
All reactions