On Mon, Apr 29, 2002 at 01:06:02PM +0100, David Hanney wrote:

> I've got a nice fat varchar(255) primary key who's content is
> duplicated (as a foreign key) in many other tables.  I hope MySQL
> optimizes away that duplication internally.

Not as much as you're probably hoping for.  Consider making an MX5()
hash of the string and using that instead.  It'll buy you a lot of
space.

Reply-to set to the appropriate list.

Jeremy
-- 
Jeremy D. Zawodny, <[EMAIL PROTECTED]>
Technical Yahoo - Yahoo Finance
Desk: (408) 349-7878   Fax: (408) 349-5454   Cell: (408) 685-5936

MySQL 3.23.47-max: up 81 days, processed 2,089,853,014 queries (298/sec. avg)

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to