|
|||||||||||
|
Re: write sets and read sets
From: Ingo Strüwing <ingo(at)mysql.com>
Date: Tue Jul 10 2007 - 10:07:11 EDT
Alex Pilchin wrote:
May it be possible that there is some misunderstanding? When we talk about read_set/write_set, we mean a set of bits, a bitmap. Every bit represents a column of the table that the set belongs to. For every statement, read_set gets the bits set for the columns that need to be read from that table by the statement, write_set gets the bits set for the columns that are written to that table by the statement. If a statement handles more than one table, then there is one pair of read_set/write_set per table. All of them can be set differently. These bitmaps are computed during parsing and executing the statement. They are used by the table handler to optimize access of its records. Due to read_set it needs to retrieve certain parts of a record only. Due to write_set, it needs to modify certain parts of a record only. I fail to see what one could accomplish by copying these bitmaps elsewhere. When you use other table handlers or other tables, you need a different statement, if only to exchange the table names. The execution machine needs to initialize itself from that statement anyway. So the bitmaps are a natural by-product. Copying them could only make the statement fail. Different handlers may require different bits to be set (primary key requirements, etc). If you still talk about these bitmaps, then please provide more information about your project. Otherwise I don't know how to help.
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 10:07:22 2007 This archive was generated by hypermail 2.1.8 : Mon Jul 16 2007 - 05:12:18 EDT |
||||||||||
|
|||||||||||