Changing the Transaction behavior

Freature requests from users for ZeosLib's DBOs

Moderators: gto, cipto_kh, EgonHugeist, mdaems

Post Reply
sandeep_c24
Expert Boarder
Expert Boarder
Posts: 158
Joined: 06.11.2005, 01:43

Changing the Transaction behavior

Post by sandeep_c24 »

In Zeos with Auto Commit set to True a Transaction is started as soon as the connection is made and committed after that for every operation done(I think that is correct, not 100% sure there).

I was wondering what effect it might have to leave the transaction inactive(not calling StartTransaction) until an operation needs to be done against the database and then we commit the transaction(HardCommit in case of Firebird/Interbase).

If this can be done then we don't need to have a transaction active when nothing is done. The transaction is only started when needed.

Regards

Sandeep
Post Reply