in reply to Re^2: Help, RDBMS have taken over my brain!
in thread Help, RDBMS have taken over my brain!

That's all good (well, modulo a minor normalization quibble), except the full text search:
select ... from ... where BodyPart like '%foo%' ...
On a small dataset this will be OK, but it won't scale, as it requires a table scan (or at the very least a full index scan if BodyPart is indexed) for databases that use B-Tree (and derived) indexes due to the leading wild-card (%).

Michael

Replies are listed 'Best First'.
Re^4: Help, RDBMS have taken over my brain!
by hubb0r (Pilgrim) on Nov 25, 2004 at 07:05 UTC
    better (mysql at least) putting a fulltext index on BodyPart and use:
    MATCH(BodyPart) AGAINST('foo')