Best place to start a transaction
Posted: Wed 06 Aug 2014 04:14
Hello
Suppose i have a sort of order screens:
- a screen with order list
- an order detail screen with an ok button.
actually, i start a transaction when the user clicks on the ok button of the detail screen (just before SQL queries).
I am wondering if it is a good thing. Is it a good way ? Should the transaction be started when the user just access to detail screen ?
Thanks
Suppose i have a sort of order screens:
- a screen with order list
- an order detail screen with an ok button.
actually, i start a transaction when the user clicks on the ok button of the detail screen (just before SQL queries).
I am wondering if it is a good thing. Is it a good way ? Should the transaction be started when the user just access to detail screen ?
Thanks