MySQL Forums
Forum List  »  Performance

Re: MySQL InnoDB Performance vs Postgres
Posted by: Ram Gudavalli
Date: July 24, 2005 11:36PM

I added a primary key index on id which increased the performance from about 50 queries/sec to 155 queries/sec. That is a reasonable boost but still doesn't come close to the 250 queries/sec that postgres gets.

It is random which one of the two queries will return more rows. On average over a large set of queries, they should return about the same number of rows.

The table represents a relationship between users. Userid and friendid are both foreign keys of the id column in the users table.

This particular table will get new rows inserted into it and existing rows removed. Thus, we are using InnoDB to for crash recovery ability and general data integrity.

So I will try covering by adding a userid/status index and a friendid/status index and get the performance results from that. Are there other ways to improve this query? In general, will the performance of the query degrade as the table gets bigger?


Ram

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: MySQL InnoDB Performance vs Postgres
1953
July 24, 2005 11:36PM


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.