// since time is reported for an invidual loop, actual duration must be adjusted by number of loops
node[this.ACTUAL_DURATION_PROP] = node[this.ACTUAL_DURATION_PROP] * node[this.ACTUAL_LOOPS_PROP];
node[this.ACTUAL_LOOPS_PROP] needs to be divided by the number of workers + 1, apparently. For example plan in a dummy db I have setup:
The actual duration is one of the most useful things about Pev, thank you!!! But for 9.6+, the logic of this line needs to be modified: https://github.com/AlexTatiyants/pev/blob/master/app/services/plan-service.ts#L184
node[this.ACTUAL_LOOPS_PROP]
needs to be divided by the number of workers + 1, apparently. For example plan in a dummy db I have setup:Right now, actual total time of this node is 360.335, but because it shows 5 loops, it is multiplying this by 5.