Hi all,
I've been reading the source code and trying to figure what exactly the format of the redo log record is. I found some articles talking about this, but they are different from what I find in the source code.
The articles I found says that the format of the redo log records is:
<space id, page no, operation code, data>
This is straightforward and easy to understand. However, this is different from what I found in the source code, which is
Type, Space ID, Page No, Page offset, Value.
How does this format give you information on how to redo the operation? Most of the times the value is only 4 bytes, but an insert query can easily insert data whose size is more than 4 bytes, right?
Can someone please give me an example of how to start from a query like an insert and finally generate the corresponding redo log records?
I've been reading the source code and trying to figure what exactly the format of the redo log record is. I found some articles talking about this, but they are different from what I find in the source code.
The articles I found says that the format of the redo log records is:
<space id, page no, operation code, data>
This is straightforward and easy to understand. However, this is different from what I found in the source code, which is
Type, Space ID, Page No, Page offset, Value.
How does this format give you information on how to redo the operation? Most of the times the value is only 4 bytes, but an insert query can easily insert data whose size is more than 4 bytes, right?
Can someone please give me an example of how to start from a query like an insert and finally generate the corresponding redo log records?