Re: N-to-N Model: Table Size vs Complexity
Posted by: dimitar nenchev
Date: May 18, 2009 04:50AM

Hi dudes

I always wonder for such N-to_N tables what is the better engine to use i.e.:

if we have a table

CREATE TABLE `friends` (
`userID` MEDIUMINT NOT NULL ,
`friendID` MEDIUMINT NOT NULL ,
PRIMARY KEY ( `userID` , `friendID` )
)

and we must join this table with table `users` to search users for example.
Which is better MyIsam or InnoDB
I know that InnoDB uese clustered index and it is fastter when search by PK, but in this case if the table is MyIsam is it using only the index data which may be cached also, without lookup for data in friends.MYI

Options: ReplyQuote




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.