You are not logged in.
Hi Arnaud,
I can see the advantages (both performance and avoid strange dead-locks) of the BatchStart/BatchSend serious of methods.
Currently the batch operations are limited to record addition, update and deletion only, is it possible to also add a new method which works like Execute(aSql: utf8string) but is handled by the batch mechanism? Thanks.
Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.
Offline
We are talking about an ORM, here... SQL may be to be avoided as much as possible, right?
It would break the cross-database feature of the framework, I guess...
But it may not be the only safe way of implementing a non-blocking complex transaction from client side...
The idea may rather be to use a SOA method, with direct SQL access, IMHO.
Offline
In this use case of mine it's not a ERP-type of business application, it's desktop app inter-process senario, so cross-db and security is not a concern
Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.
Offline
I second this proposal.
I my opinion not all sql must be seen as one problem to solve.
From the top of my head:
Functional sql: This is what the orm's implementation hides.
Technical sql: Sometimes needed in more complex cases, dialect e.g. could be handled at resource level.
Offline
@ab, a feature request I can create, a patch is currently beyond my level of understanding into this framework
Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.
Offline
Hello Arnaud,
I'm not sure your priority, anyways, the ticket system shows that the ticket is "open", so I guess you haven't added it yet
Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.
Offline
Allow raw SQL execution in batch mode,I think this feature is very easy to use, fully supports this feature
Offline
It was on purpose that direct SQL execution in a batch is NOT implemented in mORMot.
It breaks most interest of the ORM implementation.
Even the "EngineList" method is a PITA.
Then you would be stuck with a single DB provider.
Of course, as we wrote in the doc, sometimes, there is nothing better than a tuned SQL.
The ORM can't do anything.
If you want to run some complex SQL statement on the server side, do not use the ORM, but the SOA feature of mORMot.
Write your own SOA service, running directly all the SQL statements on the server side, and call it from the client side.
As such, I've rejected this ticket.
Offline
Hi ab,
That makes sense. And it's your call
Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.
Offline