rttk:uc:cacheupdates
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| rttk:uc:cacheupdates [2021/08/10 06:09] – created wikiadmin | rttk:uc:cacheupdates [2021/08/10 06:29] (current) – [Recreation] wikiadmin | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| Cached updates can be difficult to understand / diagnose, Marshal allows you to look at the dataset and database at the same time to understand what is pending and written to the actual database. | Cached updates can be difficult to understand / diagnose, Marshal allows you to look at the dataset and database at the same time to understand what is pending and written to the actual database. | ||
| ===== Implementation details ===== | ===== Implementation details ===== | ||
| - | For this demo I use the form create event to start Marshal. | + | For this demo the form create event is used to start Marshal |
| <code pascal> | <code pascal> | ||
| - | dmMainComp, | + | dmMainComp, |
| + | | ||
| + | | ||
| {$R *.dfm} | {$R *.dfm} | ||
| Line 12: | Line 14: | ||
| inherited FormCreate(Sender); | inherited FormCreate(Sender); | ||
| RegisterDS(qryProducts); | RegisterDS(qryProducts); | ||
| - | TSERTTKWorker.ShowMarshal; | + | TSERTTKWorker.ShowMarshal; |
| end;</ | end;</ | ||
| ===== Recreation ===== | ===== Recreation ===== | ||
| - | Start the demo sample Qry_CachedUpdates. | + | Start the demo sample Qry_CachedUpdates. |
| + | - Ordered List ItemConnect to the SQLite_Demo database. | ||
| + | - Click the button "Copy query to clipboard" | ||
| + | - On the Marshal form expand dmlmaincomp and click on dbmain to inspect the database connection. | ||
| + | - Paste the query in the "Query Tool" tab and then click execute to run the query. | ||
| + | - Expand frmCachedUpdates and select qryProducts, | ||
rttk/uc/cacheupdates.1628575785.txt.gz · Last modified: 2021/08/10 06:09 by wikiadmin