You are not logged in.
What is the difference of
TSQLRestClientDB.Add/Delete/Retrieve
versus
TSQLRestClientDB.Server.Add/Delete/Retrieve?
Also I found
TSQLRestClientDB.Delete(TMySQLRecord, '') doesn't empty the table, while TSQLRestClientDB.Server.Delete(TMySQLRecord, '') empty the table. Why so?
Offline
A similar question was asked before. Please check this link.
@turkerali
Thank you very much for the heads-up.
I also found the reason why
TSQLRestClientDB.Delete(TMySQLRecord, '') cannot empty the whole table. The empty SQLWhere cannot be translated to a valid restful DELETE URI.
@ab
So, for best client-server (e.g., postgreSQL server) ORM performance, I should use TSQLRestClientDB.Server to do the Add/Delete/Retrieve/Update? Or should I use TSQLRestClientDB, for its caching?
Thank you again.
Last edited by wxinix (2021-04-14 12:24:46)
Offline
There is a cache defined at TSQLRest level, which could be used for client and server classes.
On server side, just use the TSQLRestServerDB instance, properly setting the cache if needed. Forget about TSQLRestClientDB.
Online
Dear @wxinix,
You may have issues if you intend to cache external database tables.
Please check this post for ab's clarifications regarding caching.Regards.
Thank you very much for the kind reminder.
Offline