Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: write sets and read sets

From: Ingo Strüwing <ingo(at)mysql.com>
Date: Tue Jul 10 2007 - 10:07:11 EDT


Hi Alex,

Alex Pilchin wrote:
...
> Well, I'm working on a research project and I understand it should be
> significantly faster to apply write sets rather than rerun the SQL
> query. I would like to store the write sets and then apply them directly
> on the same database (where "same" means any state equivalent DB) at a
> later time.

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.

Do you need help?X

Regards
Ingo

-- 
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.com
Received 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


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library