Hi!
On Nov 19, 2009, at 1:36 AM, Paul McCullagh wrote:
> Engines that have a different record format to Drizzle can loop through the
> Field objects. And engines that do not require there own storage format, can
> write out the bytes straight from the buffer.
MySQL has changed its in memory representation of types a couple of times now,
what are you planning on doing when that happens?
> It may make sense to leave BLOB data out of the record buffer, but maybe not
> as MySQL does it today, with a pointer to the BLOB data in the buffer. The
> reason is because this messes things up. A buffer with pointer in it cannot
> be copied as is to disk.
Good point, I hadn't actually thought about this particular bit.
> So the Field object could reference a different block of memory for each
> BLOB. The engine can then just write the BLOBs in order, after the main
> record, if it stores the data consecutively on disk.
That is pretty viable.
Are you sure you don't want to find a way to store the majority of types in
some native fashion? I would think you would want to be able to safely check
the data no matter the version of the database.
Cheers,
-Brian
_______________________________________________
Mailing list: https://launchpad.net/~drizzle-discuss
Post to : [email protected]
Unsubscribe : https://launchpad.net/~drizzle-discuss
More help : https://help.launchpad.net/ListHelp