MySQL Forums
Forum List  »  InnoDB

update, change BLOB size, more
Posted by: Dean
Date: March 13, 2005 07:42AM

1. When performing an update on a BLOB, will innodb have to look for a new place to save the BLOB even if its size only changes by a few bytes? Should I try to keep the BLOB size consistent at the expense of wasting 2x the disk space?

2. I read in the manual that I am able to read only a portion of a blob at a time if desired. Can I also write to a portion of a blob at a time?

3a. Lets say that I have a TEXT that is an array of 4 character long strings, which are sorted. Is there any quick way (like binary search) to test the presence of (and index of) a 4 character long string in that TEXT, without loading the data from the database to my C program? I want to binary search in increments of 4 characters, not 1 character.

3b. Even better, can I get the intersection of one array of 4 character long strings in a TEXT with the array of 4 character long strings in a different TEXT? Is it worth trying to do this inside the MySQL client, or should I just SELECT the data and do the intersection inside my C program that is using the MySQL client? Any hints on how I could add this functionality to MySQL, or what do you think?

Thanks,
Dean Michael Gores

Options: ReplyQuote


Subject
Views
Written By
Posted
update, change BLOB size, more
4646
March 13, 2005 07:42AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.