Hi ,
We are using raw SQL to import data into our system in order to keep some kind of speed at importing (larger amounts of) data.
(1) We do (when needed) the newRecord() in the servoy foundset and the rest of the data is imported with raw sql to stay in sync with the Servoy pk counters which we use.
So we have to use the plugins.rawSQL.flushAllClientsCache() to get rid of outdated data in all client caches and the empty records (except for pk field) in the local client cache (1).
We received reports from users of ‘empty’ lines (records) after import. After restarting Servoy client the lines are filled with the imported data.
At testing at my developer site I see this also and I come to the conclusion that the plugins.rawSQL.flushAllClientsCache() does not (always ?) clears the local client cache.
When I issue databaseManager.refreshRecordFromDatabase() on the newly imported records just after the raw SQL filling of the fields the local data cache is updated just fine !
I assumed that AllClients also includes the local client…
Servoy 5.2.14
Any comments / thoughts please…
Regards,