|
|||||||||||
|
Re: write sets and read sets
From: Ingo Strüwing <ingo(at)mysql.com>
Date: Tue Jul 10 2007 - 12:15:45 EDT
Alex Pilchin wrote:
Aha. This does not match the read_set/write_set of the handler interface. I agree with Jim that this looks more like what we have in the binary log as "before image" and "after image".
...
No. Definitely not in read_set/write_set.
...
You might be able to retrieve such information from the binary log, if you use row-based logging. Otherwise I don't believe so. A set of "records to be retrieved/modified" is not stored anywhere in the server, AFAIK. And, IMHO, it cannot be done. There is no "record identifier" that is common to all storage engines. Some use the primary key, others use a record number, others use the file position of the record start. When the server needs a "set of rows/columns" internally, it creates a temporary table and fills it with the (partial) records. But this is not done for every update. If this is done for some updates at all, the table won't necessarily contain the columns to be written to. This happens only if the write column is also used for selecting the record.
Regards
-- Ingo Strüwing, Senior Software Developer MySQL GmbH, Radlkoferstr. 2, D-81373 München Geschäftsführer: Kaj Arnö - HRB München 162140 -- MySQL Internals Mailing List For list archives: http://lists.mysql.com/internals To unsubscribe: http://lists.mysql.com/internals?unsub=lists@pantek.comReceived on Tue Jul 10 12:15:53 2007 This archive was generated by hypermail 2.1.8 : Mon Jul 16 2007 - 05:12:18 EDT |
||||||||||
|
|||||||||||