Transaction does not start nor do a commit/rollbac


I think, MS-SQL server behaves the same way, but also I haven'¡t worked with it for years, I might remember wrong.

We'd have to see, how that works, if we use a TAureliusDataset with a grid, that the caching would work.


That sounds like we're getting somewhere :)
Aurelius has some adapters, that work with interbase/FB, like FireDac, IBO, FibPlus, IBX and probably UIB (with that one I haven't worked with).
But in that case you will have to let us tell the ObjectManager which transaction we want to use, so that all statements (queries) used by that ObjectManager are using this context, right ?

Thanks for that consideration, this would help a lot using Aurelius in something bigger  :)

All databases can have multiple transactions, as long as each transaction is in a different connection. All that could be solved, by the way, and code would be cross-platform, if you simply use a different connection for each different transaction you would like to use. 

That's how it's built, each object manager can use a different connection. Why don't you consider it? Aurelius is already big! :-)

Using a connection for every form is a bit of an overhead, no? 

I think it would be easier to create a new object manager (TTransactionalObjectManager) that inherits everything from TObjectManager but introduces a transaction and has the methods overwritten, that create statements and does commits etc.

Why?

Opening 1 connection for every form :O

I think, 500 years ago people got burned on the stake for heresy :P

A connection object takes MUCH more memory to have and I loads the server with more connections that it has to. Imagine a company with some 100 workstation and in every workstation I open 20 connections for standard objects that I need to run in the background + another for every form :O Peopke will burn me on the stake here, it's a very catholic country in south america where I live :D

Keeping transactions open for so long is also not a good idea:

https://stackoverflow.com/questions/1968437/are-long-living-transactions-acceptable