Print Thread
ThreadSafe Session
#48647 02/24/14 10:54 AM
Joined: Feb 2005
Posts: 49
A
Member
OP Offline
Member
A
Joined: Feb 2005
Posts: 49
Hello,

I'm using a ThreadSafe Session in a IntraWeb application (Delphi XE4, DOA 4.1.3.5, 32-bit application).

I ask confirm that post on dataset and commit are well managed.
Also, what about savepoint management (DOA_APPLYPOINT and DOA__LOCKPOINT)? In our application several threads share a single OracleSession, so may occurs that several post/apply/commit operations are executing by different threads at the same time.

This because we are investigating on conflict's session problems.

Thanks

Re: ThreadSafe Session
Alberto Pilat #48648 02/24/14 11:13 AM
Joined: Aug 1999
Posts: 22,204
Member
Offline
Member
Joined: Aug 1999
Posts: 22,204
All database access operations are serialized for the session if ThreadSafe is True. Transaction management (including management of savepoints) remains a responsibility of the application.


Marco Kalter
Allround Automations
Re: ThreadSafe Session
Marco Kalter #48650 02/24/14 12:23 PM
Joined: Feb 2005
Posts: 49
A
Member
OP Offline
Member
A
Joined: Feb 2005
Posts: 49
Ok, of course our application must ensure that each user session commit data and see data with coherence.

But in wich way I can management savepoints? Is there some documentation about it?
When I use TOracleDataset I see a call to savepoint DOA__LOCKPOINT, and when I call ApplyUpdates too (DOA_APPLYPOINT).
I have to redefines these behavior when using ThreadSafe session or they works good?

Re: ThreadSafe Session
Alberto Pilat #48668 02/26/14 10:33 AM
Joined: Aug 1999
Posts: 22,204
Member
Offline
Member
Joined: Aug 1999
Posts: 22,204
Your application will need to ensure that while the TOracleDataSet is applying its updates, there are no other threads updating the database as well. Setting the ThreadSafe property does not cover transaction management, it merely serializes database access operations from multiple threads.


Marco Kalter
Allround Automations

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.056s Queries: 14 (0.006s) Memory: 2.5067 MB (Peak: 3.0398 MB) Data Comp: Off Server Time: 2024-04-25 23:35:14 UTC
Valid HTML 5 and Valid CSS