3 ms·What you described is already solved by window functions.by rawgabbit 4y agoWhat you described is already solved by window functions.