Would it be possible to rollback a transaction using a single thread?
I tried to find an answer to this question, but I couldn't find one that provided references. I read about rollback mechanisms. See below:
What is the mechanism for Transaction Rollback in SQL-Server?
If you rollback the transaction, the engine will start scanning the log backward looking for records of work done by your transaction and will undo the work: when it finds the record of update from A to B, will change the value back to A. An insert will be undone by deleting the inserted row. A delete will be undone by inserting back the row. This is described in Transaction Log Logical Architecture and Write-Ahead Transaction Log.
This is the high level explanation, the exact internal details how this happen are undocumented for laymen and not subject to your inspection nor changes.
Rollbacking a transaction takes longer than executing it. There are several reasons for this.
Now, the question is, how can I test in various scenarios how much resources (single/multithreaded) are consumed by these operations?
From what I have heard, a single thread is claimed. However, I cannot find any evidence to support that claim.
If a single thread operation is performed, can the behavior be changed to multi thread? How about the opposite?