matrixorigin / matrixone

Hyperconverged cloud-edge native database
https://docs.matrixorigin.cn/en
Apache License 2.0
1.79k stars 277 forks source link

[Subtask]: revisit table append nodes #4685

Closed XuPeng-SH closed 2 years ago

XuPeng-SH commented 2 years ago

Parent Issue

4628

Detail of Subtask

In 0.5.0, append nodes are organized as below

---------+--------+---------
 StartRow|EndRow  |TxnMeta
---------+--------+---------
   0     |   10   | (1:1:2)
  10     |   20   | (2:3:4)
  20     |   30   | (3:5:6)

Since in the 1PC scenario, the row id and transaction commit ts are monotonic consistent. So some read optimizations are made, but in the case of 2pc, this monotonicity is not guaranteed, so some of the previous optimizations do not work.

Describe implementation you've considered

No response

Additional information

No response

XuPeng-SH commented 2 years ago

implemented by #4969